Documentation
¶
Index ¶
- func ParamsFrom(req *http.Request) map[string]string
- type Handler
- type Operator
- func (c *Operator) Delete(url string, handlers ...Handler)
- func (c *Operator) Get(url string, handlers ...Handler)
- func (c *Operator) Head(url string, handlers ...Handler)
- func (c *Operator) Options(url string, handlers ...Handler)
- func (c *Operator) ParseBody() *Operator
- func (c *Operator) Post(url string, handlers ...Handler)
- func (c *Operator) Put(url string, handlers ...Handler)
- func (c *Operator) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (c *Operator) Trace(url string, handlers ...Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func NewOperator ¶
func NewOperator() *Operator
NewOperator returns a new conductor for your web application.
func (*Operator) Delete ¶
Delete registers a set of handlers for any HTTP DELETE request to the specified url.
func (*Operator) Get ¶
Get registers a set of handlers for any HTTP GET request to the specified url.
func (*Operator) Head ¶
Head registers a set of handlers for any HTTP HEAD request to the specified url.
func (*Operator) Options ¶
Options registers a set of handlers for any HTTP OPTIONS request to the specified url.
func (*Operator) ParseBody ¶
ParseBody tells the operator to always parse the body of HTTP requests if a Body exists.
func (*Operator) Post ¶
Post registers a set of handlers for any HTTP POST request to the specified url.
func (*Operator) Put ¶
Put registers a set of handlers for any HTTP Put request to the specified url.
Click to show internal directories.
Click to hide internal directories.

