Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cors ¶
type Cors struct { Origins set Middleware Headers []string Methods []string Credentials bool }
type Middleware ¶
Middleware can be embedded in an object to automatically implement the Middlewarer interface
func (*Middleware) Next ¶
func (m *Middleware) Next(handler http.Handler)
Sets the next handler for this middleware. This could be a
type Middlewarer ¶
type RequestLogger ¶
type RequestLogger struct {
Middleware
}
func (*RequestLogger) ServeHTTP ¶
func (m *RequestLogger) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.