Documentation
¶
Overview ¶
Package fasthttp
@author: xwc1125
Package fasthttp ¶
@author: xwc1125
Package fasthttp ¶
@author: xwc1125
Index ¶
- type Cookie
- type Request
- func (r *Request) AddCookie(c xgateway.Cookie)
- func (r *Request) Args() url.Values
- func (r *Request) Body() ([]byte, error)
- func (r *Request) Context() context.Context
- func (r *Request) Cookie(name string) (xgateway.Cookie, error)
- func (r *Request) Cookies() []xgateway.Cookie
- func (r *Request) Header() xgateway.Header
- func (r *Request) ID() uint64
- func (r *Request) Method() string
- func (r *Request) Path() []byte
- func (r *Request) RemoteIP() net.IP
- func (r *Request) SetPath(bytes []byte)
- type RequestHeader
- func (h *RequestHeader) AddCookie(key, value string)
- func (h *RequestHeader) AllCookie(f func(key []byte, value []byte))
- func (h *RequestHeader) Get(key string) string
- func (h *RequestHeader) Headers() []byte
- func (h *RequestHeader) SetCookie(cookie xgateway.Cookie)
- func (h *RequestHeader) SetStatusCode(statusCode int)
- func (h *RequestHeader) StatusCode() int
- type ResponseHeader
- func (h *ResponseHeader) AddCookie(key, value string)
- func (h *ResponseHeader) AllCookie(f func(key []byte, value []byte))
- func (h *ResponseHeader) Cookie(key string) []byte
- func (h *ResponseHeader) Get(key string) string
- func (h *ResponseHeader) Headers() []byte
- func (h *ResponseHeader) Host() []byte
- func (h *ResponseHeader) Method() []byte
- func (h *ResponseHeader) RequestURI() []byte
- func (h *ResponseHeader) SetCookie(cookie xgateway.Cookie)
- func (h *ResponseHeader) SetHost(host string)
- func (h *ResponseHeader) SetMethod(method string)
- func (h *ResponseHeader) SetProtocol(method string)
- func (h *ResponseHeader) SetRequestURI(requestURI string)
- func (h *ResponseHeader) SetUserAgent(userAgent string)
- func (h *ResponseHeader) UserAgent() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
func (*Cookie) SetSameSite ¶
type Request ¶
func NewRequest ¶
func NewRequest(ctx *fasthttp.RequestCtx) *Request
type RequestHeader ¶
type RequestHeader struct { *fasthttp.RequestHeader // contains filtered or unexported fields }
func NewRequestHeader ¶
func NewRequestHeader(requestHeader *fasthttp.RequestHeader) *RequestHeader
func (*RequestHeader) AddCookie ¶
func (h *RequestHeader) AddCookie(key, value string)
func (*RequestHeader) AllCookie ¶
func (h *RequestHeader) AllCookie(f func(key []byte, value []byte))
func (*RequestHeader) Get ¶
func (h *RequestHeader) Get(key string) string
func (*RequestHeader) Headers ¶
func (h *RequestHeader) Headers() []byte
func (*RequestHeader) SetCookie ¶
func (h *RequestHeader) SetCookie(cookie xgateway.Cookie)
func (*RequestHeader) SetStatusCode ¶
func (h *RequestHeader) SetStatusCode(statusCode int)
func (*RequestHeader) StatusCode ¶
func (h *RequestHeader) StatusCode() int
type ResponseHeader ¶
type ResponseHeader struct { *fasthttp.ResponseHeader // contains filtered or unexported fields }
func NewResponseHeader ¶
func NewResponseHeader(respHeader *fasthttp.ResponseHeader) *ResponseHeader
func (*ResponseHeader) AddCookie ¶
func (h *ResponseHeader) AddCookie(key, value string)
func (*ResponseHeader) AllCookie ¶
func (h *ResponseHeader) AllCookie(f func(key []byte, value []byte))
func (*ResponseHeader) Cookie ¶
func (h *ResponseHeader) Cookie(key string) []byte
func (*ResponseHeader) Get ¶
func (h *ResponseHeader) Get(key string) string
func (*ResponseHeader) Headers ¶
func (h *ResponseHeader) Headers() []byte
func (*ResponseHeader) Host ¶
func (h *ResponseHeader) Host() []byte
func (*ResponseHeader) Method ¶
func (h *ResponseHeader) Method() []byte
func (*ResponseHeader) RequestURI ¶
func (h *ResponseHeader) RequestURI() []byte
func (*ResponseHeader) SetCookie ¶
func (h *ResponseHeader) SetCookie(cookie xgateway.Cookie)
func (*ResponseHeader) SetHost ¶
func (h *ResponseHeader) SetHost(host string)
func (*ResponseHeader) SetMethod ¶
func (h *ResponseHeader) SetMethod(method string)
func (*ResponseHeader) SetProtocol ¶
func (h *ResponseHeader) SetProtocol(method string)
func (*ResponseHeader) SetRequestURI ¶
func (h *ResponseHeader) SetRequestURI(requestURI string)
func (*ResponseHeader) SetUserAgent ¶
func (h *ResponseHeader) SetUserAgent(userAgent string)
func (*ResponseHeader) UserAgent ¶
func (h *ResponseHeader) UserAgent() []byte
Click to show internal directories.
Click to hide internal directories.