Documentation ¶
Index ¶
- type Context
- func (c *Context) Abort()
- func (c *Context) Deadline() (deadline time.Time, ok bool)
- func (c *Context) Done() <-chan struct{}
- func (c *Context) Err() error
- func (c *Context) Invoke(ctx http.Context)
- func (c *Context) IsAborted() bool
- func (c *Context) IsCompleted() bool
- func (c *Context) Parent() *Context
- func (c *Context) Request() http.Request
- func (c *Context) Reset(req *stdhttp.Request, writer stdhttp.ResponseWriter)
- func (c *Context) Response() http.Response
- func (c *Context) Value(key any) any
- func (c *Context) With(request http.Request, response http.Response) http.Context
- func (c *Context) WithRequest(request http.Request) http.Context
- func (c *Context) WithResponse(response http.Response) http.Context
- func (c *Context) WithValue(key, val any) http.Context
- type Request
- func (r *Request) Context() http.Context
- func (r *Request) Cookie(name string) (*http.Cookie, bool)
- func (r *Request) Cookies() []*http.Cookie
- func (r *Request) Header(name string) (string, bool)
- func (r *Request) HeaderNames() []string
- func (r *Request) Headers(name string) []string
- func (r *Request) IsSecure() bool
- func (r *Request) Method() http.Method
- func (r *Request) Path() string
- func (r *Request) QueryParameter(name string) (string, bool)
- func (r *Request) QueryParameterNames() []string
- func (r *Request) QueryParameters(name string) []string
- func (r *Request) QueryString() string
- func (r *Request) Reader() io.Reader
- func (r *Request) Scheme() string
- func (r *Request) WithReader(reader io.Reader) http.Request
- type RequestDelegate
- type Response
- func (r *Response) AddCookie(cookie *http.Cookie)
- func (r *Response) AddHeader(name string, value string)
- func (r *Response) CharacterEncoding() string
- func (r *Response) ContentLength() int
- func (r *Response) ContentType() string
- func (r *Response) Context() http.Context
- func (r *Response) DeleteHeader(name string)
- func (r *Response) Flush()
- func (r *Response) Header(name string) string
- func (r *Response) HeaderNames() []string
- func (r *Response) Headers(name string) []string
- func (r *Response) IsCommitted() bool
- func (r *Response) Reset()
- func (r *Response) SetCharacterEncoding(charset string)
- func (r *Response) SetContentLength(len int)
- func (r *Response) SetContentType(contentType string)
- func (r *Response) SetHeader(name string, value string)
- func (r *Response) SetStatus(status http.Status)
- func (r *Response) Status() http.Status
- func (r *Response) WithWriter(writer io.Writer) http.Response
- func (r *Response) Writer() io.Writer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { HandlerChain http.HandlerChain // contains filtered or unexported fields }
func (*Context) IsCompleted ¶
func (*Context) Reset ¶
func (c *Context) Reset(req *stdhttp.Request, writer stdhttp.ResponseWriter)
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) HeaderNames ¶
func (*Request) QueryParameterNames ¶
func (*Request) QueryParameters ¶
func (*Request) QueryString ¶
type RequestDelegate ¶
type RequestDelegate struct {
// contains filtered or unexported fields
}
func (RequestDelegate) Invoke ¶
func (d RequestDelegate) Invoke(ctx http.Context)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) CharacterEncoding ¶
func (*Response) ContentLength ¶
func (*Response) ContentType ¶
func (*Response) DeleteHeader ¶
func (*Response) HeaderNames ¶
func (*Response) IsCommitted ¶
func (*Response) SetCharacterEncoding ¶
func (*Response) SetContentLength ¶
func (*Response) SetContentType ¶
Click to show internal directories.
Click to hide internal directories.