Documentation
¶
Overview ¶
Out-of-order HTTP!
Index ¶
- Constants
- func InitServer(s *fastrpc.Server, hnd fasthttp.RequestHandler)
- func NewFakeResponse() fastrpc.ResponseReader
- func NewHandler(hnd fasthttp.RequestHandler) func(ctx fastrpc.HandlerCtx) fastrpc.HandlerCtx
- func NewHandlerCtx() fastrpc.HandlerCtx
- type Client
- type WrappedCtx
- type WrappedRequest
- type WrappedResponse
Constants ¶
View Source
const ProtocolVersion byte = 1
View Source
const SniffHeader = "OOHttp"
Variables ¶
This section is empty.
Functions ¶
func InitServer ¶
func InitServer(s *fastrpc.Server, hnd fasthttp.RequestHandler)
func NewFakeResponse ¶
func NewFakeResponse() fastrpc.ResponseReader
func NewHandler ¶
func NewHandler(hnd fasthttp.RequestHandler) func(ctx fastrpc.HandlerCtx) fastrpc.HandlerCtx
func NewHandlerCtx ¶
func NewHandlerCtx() fastrpc.HandlerCtx
Types ¶
type WrappedCtx ¶
type WrappedCtx struct {
Ctx fasthttp.RequestCtx
}
func (*WrappedCtx) ConcurrencyLimitError ¶
func (w *WrappedCtx) ConcurrencyLimitError(concurrency int)
func (*WrappedCtx) ReadRequest ¶
func (w *WrappedCtx) ReadRequest(br *bufio.Reader) error
func (*WrappedCtx) WriteResponse ¶
func (w *WrappedCtx) WriteResponse(bw *bufio.Writer) error
type WrappedRequest ¶
func (*WrappedRequest) WriteRequest ¶
func (w *WrappedRequest) WriteRequest(bw *bufio.Writer) error
type WrappedResponse ¶
func (*WrappedResponse) ReadResponse ¶
func (w *WrappedResponse) ReadResponse(br *bufio.Reader) error
Click to show internal directories.
Click to hide internal directories.