Documentation ¶
Index ¶
- type Asset
- type Context
- type Data
- type File
- type Handler
- type Info
- type Key
- type Kinetic
- func (k *Kinetic) Connect(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Delete(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Get(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Head(p string, h Handler, m ...Middleware)
- func (k *Kinetic) NotFound(h Handler, m ...Middleware)
- func (k *Kinetic) Options(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Patch(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Post(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Put(p string, h Handler, m ...Middleware)
- func (k *Kinetic) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (k *Kinetic) Static(prefix string, dir string) error
- func (k *Kinetic) Templates(dir string) error
- func (k *Kinetic) Trace(p string, h Handler, m ...Middleware)
- func (k *Kinetic) Use(middlewares ...Middleware)
- type Middleware
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Base *base // base methods Context *rcontext // request context with value Cookie *cookie // methods with HTTP cookies Engine *engine // template engine Forms *forms // get values from html forms Headers *headers // get,set,del http headers Meta *meta // metainfo Reader *reader // read data from request Static *static // manipulate with static files Query *query // query params Writer *writer // send data to response // contains filtered or unexported fields }
type Info ¶
type Info struct { Host string `json:"host"` Method string `json:"method"` RemoteAddr string `json:"remote_addr"` RequestURI string `json:"request_URI"` ContentLength int64 `json:"content_length"` Proto string `json:"proto"` Referer string `json:"referer"` TransferEncoding []string `json:"transfer_encoding"` UserAgent string `json:"user_agent"` Close bool `json:"close"` }
type Kinetic ¶
type Kinetic struct {
// contains filtered or unexported fields
}
func (*Kinetic) Connect ¶
func (k *Kinetic) Connect(p string, h Handler, m ...Middleware)
Method registers http-method CONNECT.
func (*Kinetic) Delete ¶
func (k *Kinetic) Delete(p string, h Handler, m ...Middleware)
Method registers http-method DELETE.
func (*Kinetic) Get ¶
func (k *Kinetic) Get(p string, h Handler, m ...Middleware)
Method registers http-method GET.
func (*Kinetic) Head ¶
func (k *Kinetic) Head(p string, h Handler, m ...Middleware)
Method registers http-method HEAD.
func (*Kinetic) NotFound ¶
func (k *Kinetic) NotFound(h Handler, m ...Middleware)
Method registers 404 error handler (not found).
func (*Kinetic) Options ¶
func (k *Kinetic) Options(p string, h Handler, m ...Middleware)
Method registers http-method OPTIONS.
func (*Kinetic) Patch ¶
func (k *Kinetic) Patch(p string, h Handler, m ...Middleware)
Method registers http-method PATCH.
func (*Kinetic) Post ¶
func (k *Kinetic) Post(p string, h Handler, m ...Middleware)
Method registers http-method POST.
func (*Kinetic) Put ¶
func (k *Kinetic) Put(p string, h Handler, m ...Middleware)
Method registers http-method PUT.
func (*Kinetic) ServeHTTP ¶
func (k *Kinetic) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implementation.
func (*Kinetic) Trace ¶
func (k *Kinetic) Trace(p string, h Handler, m ...Middleware)
Method registers http-method TRACE.
func (*Kinetic) Use ¶
func (k *Kinetic) Use(middlewares ...Middleware)
Method registers handlers as middleware.
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.