Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceFromHeader ¶
func DeviceFromHeader(r http.Header) *reqctx.DeviceInfo
Types ¶
type Context ¶
type Context = reqctx.Context[RequestCtx]
func FromContextValue ¶
func FromRequest ¶
func FromRequest(req RequestCtx) *Context
type HttpContext ¶
type HttpContext Context
func (*HttpContext) SendHeader ¶
func (c *HttpContext) SendHeader(md metadata.MD) error
func (*HttpContext) SetCookie ¶
func (c *HttpContext) SetCookie(v string) error
func (*HttpContext) SetTrailer ¶
func (c *HttpContext) SetTrailer(md metadata.MD) error
func (*HttpContext) WriteHeader ¶
func (c *HttpContext) WriteHeader(k, v string) error
type RequestCtx ¶
type RequestCtx struct { Request *http.Request Response http.ResponseWriter }
Click to show internal directories.
Click to hide internal directories.