Versions in this module Expand all Collapse all v0 v0.0.2 May 9, 2026 Changes in this version + type Ctx struct + func NewCtx(w http.ResponseWriter, r *http.Request, params ...Param) *Ctx + func (c *Ctx) Bind(v any) error + func (c *Ctx) Body() ([]byte, error) + func (c *Ctx) Bytes(status int, contentType string, bytes []byte) error + func (c *Ctx) File(path string) error + func (c *Ctx) FormValue(key string) string + func (c *Ctx) Get(key string) any + func (c *Ctx) HTML(status int, s string) error + func (c *Ctx) Html(status int, s string) error + func (c *Ctx) JSON(status int, data any) error + func (c *Ctx) MultipartForm() (*multipart.Form, error) + func (c *Ctx) Next() + func (c *Ctx) NoContent(status int) error + func (c *Ctx) Param(key string) string + func (c *Ctx) Params() []Param + func (c *Ctx) Query(key string) string + func (c *Ctx) QueryParam(key string) string + func (c *Ctx) Redirect(status int, url string) error + func (c *Ctx) Render(status int, name string, data any) error + func (c *Ctx) Request() *http.Request + func (c *Ctx) Response() *Response + func (c *Ctx) ServeFile(status int, path string) error + func (c *Ctx) Set(key string, val any) + func (c *Ctx) SetRenderer(r Renderer) + func (c *Ctx) String(status int, s string) error + func (c *Ctx) Text(status int, s string) error + func (c *Ctx) Writer() http.ResponseWriter + type HTTPError struct + Code int + Message interface{} + func NewHTTPError(code int, message ...interface{}) *HTTPError + func (e *HTTPError) Error() string + type HandlerFunc func(ctx *Ctx) error + type MiddlewareFunc func(next HandlerFunc) HandlerFunc + type Param = radix.Param + type Params = radix.Params + type Renderer interface + Render func(w io.Writer, name string, data interface{}, c *Ctx) error + type Response struct + Committed bool + Status int + Writer http.ResponseWriter + func (r *Response) Header() http.Header + func (r *Response) Write(b []byte) (int, error) + func (r *Response) WriteHeader(code int) + type Router struct + func NewRouter() *Router + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (r *Router) SetRenderer(renderer Renderer) + type RouterGroup struct + func (g *RouterGroup) DELETE(path string, handler HandlerFunc, middlewares ...MiddlewareFunc) + func (g *RouterGroup) GET(path string, handler HandlerFunc, middlewares ...MiddlewareFunc) + func (g *RouterGroup) Group(prefix string, middlewares ...MiddlewareFunc) *RouterGroup + func (g *RouterGroup) Handle(method string, path string, handler HandlerFunc, mw ...MiddlewareFunc) + func (g *RouterGroup) POST(path string, handler HandlerFunc, middlewares ...MiddlewareFunc) + func (g *RouterGroup) PUT(path string, handler HandlerFunc, middlewares ...MiddlewareFunc) + func (g *RouterGroup) Prefix() string + func (g *RouterGroup) Static(prefix string, root string) + func (g *RouterGroup) Use(middlewares ...MiddlewareFunc)