Documentation ¶
Index ¶
- type Context
- func (c *Context) AddHeader(key, value string) *Context
- func (c *Context) Body(value []byte) *Context
- func (c *Context) Cancel() <-chan struct{}
- func (c *Context) Close() bool
- func (c *Context) ContentLength() int64
- func (c *Context) Form() url.Values
- func (c *Context) GetBody() func() (io.ReadCloser, error)
- func (c *Context) GetParam(key string) string
- func (c *Context) Host() string
- func (c *Context) Html(value string) *Context
- func (c *Context) Json(value any) *Context
- func (c *Context) Method() string
- func (c *Context) MultipartForm() *multipart.Form
- func (c *Context) ParseBody() ([]byte, error)
- func (c *Context) ParseJson(target any) error
- func (c *Context) ParseText() (string, error)
- func (c *Context) PostForm() url.Values
- func (c *Context) Proto() string
- func (c *Context) ProtoMajor() int
- func (c *Context) ProtoMinor() int
- func (c *Context) Query() url.Values
- func (c *Context) ReadBody() io.ReadCloser
- func (c *Context) RemoteAddr() string
- func (c *Context) ReqURI() string
- func (c *Context) Response() *http.Response
- func (c *Context) SetHeader(key, value string) *Context
- func (c *Context) Status(status int) *Context
- func (c *Context) TLS() *tls.ConnectionState
- func (c *Context) Text(value string) *Context
- func (c *Context) TransferEncoding() []string
- func (c *Context) URL() *url.URL
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Res http.ResponseWriter Req *http.Request Params Params End func() Next func() Var map[string]any NotFound func() }
func (*Context) ContentLength ¶
func (*Context) MultipartForm ¶
func (*Context) ProtoMajor ¶
func (*Context) ProtoMinor ¶
func (*Context) ReadBody ¶
func (c *Context) ReadBody() io.ReadCloser
func (*Context) RemoteAddr ¶
func (*Context) TLS ¶
func (c *Context) TLS() *tls.ConnectionState
func (*Context) TransferEncoding ¶
Click to show internal directories.
Click to hide internal directories.