Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTooManyRedirects too many redirects ErrTooManyRedirects = errors.New("too many redirects") // ErrMissingLocation missing location ErrMissingLocation = errors.New("missing location") )
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { Status int `json:"status"` ContentType string `json:"content_type,omitempty"` ContentLength int `json:"content_length,omitempty"` }
Meta meta information of the requested page.
type Middleware ¶
Middleware describes a service middleware.
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
LoggingMiddleware takes a logger as a dependency and returns a LoggingMiddleware.
Click to show internal directories.
Click to hide internal directories.