Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FnHandlerRequest ¶
FnHandlerRequest is a function that can process a request
type RequestHandler ¶
type RequestHandler interface { //Process the request and return the modification or error Process(req *http.Request) (*http.Request, error) //Name of the request handler Name() string }
RequestHandler if a function that modifies a request. Execution occurs after authentication but before proxy to upstream
type SimpleRequestHandler ¶
type SimpleRequestHandler struct {
// contains filtered or unexported fields
}
SimpleRequestHandler is a simple container to modify requests
func NewRequestHandler ¶
func NewRequestHandler(name string, handler FnHandlerRequest) *SimpleRequestHandler
NewRequestHandler creates a named wrapper to a requesthandler function
func (*SimpleRequestHandler) Name ¶
func (h *SimpleRequestHandler) Name() string
Name of the requesthandler
Click to show internal directories.
Click to hide internal directories.