Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileServer ¶
func NewFileServer ¶
func NewFileServer(dest afero.Fs) *FileServer
func (*FileServer) Serve ¶
func (s *FileServer) Serve() error
type Redirect ¶
type Server ¶
type Server struct {
Headers []Headers
Redirects []Redirect
// contains filtered or unexported fields
}
func (*Server) MatchHeaders ¶
func (s *Server) MatchHeaders(pattern string) []types.KeyValueStr
func (*Server) MatchRedirect ¶
Click to show internal directories.
Click to hide internal directories.