Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceFromHeader ¶ added in v1.4.9
Types ¶
type Context ¶
type Context = contexti.RequestContext[RequestCtx]
func ContextFromContext ¶
func ContextFromRequest ¶
func ContextFromRequest(req RequestCtx, tracing bool) (*Context, trace.Span)
type HttpContext ¶ added in v1.4.9
type HttpContext contexti.RequestContext[RequestCtx]
func (*HttpContext) SendHeader ¶ added in v1.4.9
func (c *HttpContext) SendHeader(md metadata.MD) error
func (*HttpContext) SetCookie ¶ added in v1.4.9
func (c *HttpContext) SetCookie(v string) error
func (*HttpContext) SetHeader ¶ added in v1.4.9
func (c *HttpContext) SetHeader(md metadata.MD) error
func (*HttpContext) SetTrailer ¶ added in v1.4.9
func (c *HttpContext) SetTrailer(md metadata.MD) error
func (*HttpContext) WriteHeader ¶ added in v1.4.9
func (c *HttpContext) WriteHeader(k, v string) error
type RequestCtx ¶ added in v1.7.2
type RequestCtx struct { Request *http.Request Response http.ResponseWriter }
Click to show internal directories.
Click to hide internal directories.