Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBodyWriter ¶ added in v0.8.5
func NewBodyWriter() *bodyWriter
Types ¶
type BodyWriter ¶ added in v0.8.5
BodyWriter is implemented by bodyWriter internally. This interface is used by the developer to write desired output to the REST http response. WriteProto is a helper function for marshalling and then writing the proto message to the body of http response.
type CloseHandler ¶
type HeaderWriter ¶ added in v0.8.5
HeaderWriter is the object responsible for writing response header.
func NewHeaderWriter ¶ added in v0.8.5
func NewHeaderWriter() *HeaderWriter
func (HeaderWriter) Release ¶ added in v0.8.5
func (hw HeaderWriter) Release()
func (HeaderWriter) Set ¶ added in v0.8.5
func (hw HeaderWriter) Set(key, value string)
type Proxy ¶ added in v0.6.0
type Proxy interface { OnRequest(conn rony.Conn, ctx *RequestCtx, writer BodyWriter) OnResponse(data []byte, bodyWriter BodyWriter, hdrWriter *HeaderWriter) }
Proxy defines the interface for proxy handlers. This is used in 'rest' package to support writing restfull wrappers for the RPC handlers.
type ProxyFactory ¶ added in v0.6.40
ProxyFactory is the factory which generates ProxyHandle.
type RequestCtx ¶ added in v0.5.23
type RequestCtx = fasthttp.RequestCtx
Click to show internal directories.
Click to hide internal directories.