Documentation
¶
Rendered for js/wasm
Index ¶
- func NewApp() *app
- type Context
- type Handler
- type NextFunc
- type RegexpRouter
- type Request
- func (r *Request) Body() map[string]string
- func (r *Request) Header(name string) string
- func (r *Request) Headers(name string) map[string]string
- func (r *Request) Param(name string) string
- func (r *Request) Queries() map[string]string
- func (r *Request) Query(name string) string
- func (r *Request) Text() (body string)
- type Response
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegexpRouter ¶
type RegexpRouter struct {
// contains filtered or unexported fields
}
func NewRegexpRouter ¶
func NewRegexpRouter() *RegexpRouter
func (*RegexpRouter) Register ¶
func (r *RegexpRouter) Register(method, pattern string, handler Handler)
Click to show internal directories.
Click to hide internal directories.