Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2018 Changes in this version + const MIME_FORM + const MIME_HTML + const MIME_JSON + const MIME_MULTIPART_FORM + const MIME_XML + const MIME_XML2 + var Methods = []string + func MethodNotAllowedHandler(c *Context) error + func NotFoundHandler(*Context) error + func ReadFormData(form map[string][]string, data interface{}) error + type Context struct + func NewContext(ctx *fasthttp.RequestCtx, handlers ...Handler) *Context + func (c *Context) Abort() + func (c *Context) Form(key string, defaultValue ...string) string + func (c *Context) Get(name string) interface{} + func (c *Context) Next() error + func (c *Context) Param(name string) string + func (c *Context) PostForm(key string, defaultValue ...string) string + func (c *Context) Query(name string, defaultValue ...string) string + func (c *Context) Read(data interface{}) error + func (c *Context) Router() *Router + func (c *Context) Set(name string, value interface{}) + func (c *Context) SetDataWriter(writer DataWriter) + func (c *Context) SetParam(name, value string) + func (c *Context) URL(route string, pairs ...interface{}) string + func (c *Context) Write(data interface{}) error + type DataReader interface + Read func(*fasthttp.RequestCtx, interface{}) error + var DataReaders = map[string]DataReader{ ... } + var DefaultFormDataReader DataReader = &FormDataReader{} + type DataWriter interface + SetHeader func(*fasthttp.ResponseHeader) + Write func(io.Writer, interface{}) error + var DefaultDataWriter DataWriter = &dataWriter{} + type FormDataReader struct + func (r *FormDataReader) Read(ctx *fasthttp.RequestCtx, data interface{}) error + type HTTPError interface + StatusCode func() int + func NewHTTPError(status int, message ...string) HTTPError + type Handler func(*Context) error + func RequestHandlerFunc(h fasthttp.RequestHandler) Handler + type JSONDataReader struct + func (r *JSONDataReader) Read(ctx *fasthttp.RequestCtx, data interface{}) error + type Route struct + func (r *Route) Connect(handlers ...Handler) *Route + func (r *Route) Delete(handlers ...Handler) *Route + func (r *Route) Get(handlers ...Handler) *Route + func (r *Route) Head(handlers ...Handler) *Route + func (r *Route) Method() string + func (r *Route) Name(name string) *Route + func (r *Route) Options(handlers ...Handler) *Route + func (r *Route) Patch(handlers ...Handler) *Route + func (r *Route) Path() string + func (r *Route) Post(handlers ...Handler) *Route + func (r *Route) Put(handlers ...Handler) *Route + func (r *Route) String() string + func (r *Route) Tag(value interface{}) *Route + func (r *Route) Tags() []interface{} + func (r *Route) To(methods string, handlers ...Handler) *Route + func (r *Route) Trace(handlers ...Handler) *Route + func (r *Route) URL(pairs ...interface{}) (s string) + type RouteGroup struct + func (rg *RouteGroup) Any(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Connect(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Delete(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Get(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Group(prefix string, handlers ...Handler) *RouteGroup + func (rg *RouteGroup) Head(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Options(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Patch(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Post(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Put(path string, handlers ...Handler) *Route + func (rg *RouteGroup) To(methods, path string, handlers ...Handler) *Route + func (rg *RouteGroup) Trace(path string, handlers ...Handler) *Route + func (rg *RouteGroup) Use(handlers ...Handler) + type Router struct + IgnoreTrailingSlash bool + UseEscapedPath bool + func New() *Router + func (r *Router) Find(method, path string) (handlers []Handler, params map[string]string) + func (r *Router) HandleRequest(ctx *fasthttp.RequestCtx) + func (r *Router) NotFound(handlers ...Handler) + func (r *Router) Route(name string) *Route + func (r *Router) Routes() []*Route + func (r *Router) Use(handlers ...Handler) + type XMLDataReader struct + func (r *XMLDataReader) Read(ctx *fasthttp.RequestCtx, data interface{}) error Other modules containing this package github.com/jackwhelpton/fasthttp-routing/v2