fiberctx

package
v0.0.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 10 Imported by: 2

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[fiber.Ctx]

func FromContextValue

func FromContextValue(ctx context.Context) *Context

func FromRequest

func FromRequest(req fiber.Ctx) *Context

type FiberContext

type FiberContext Context

func (*FiberContext) SendHeader

func (c *FiberContext) SendHeader(md metadata.MD) error

func (*FiberContext) SetCookie

func (c *FiberContext) SetCookie(v string) error

func (*FiberContext) SetHeader

func (c *FiberContext) SetHeader(md metadata.MD) error

func (*FiberContext) SetTrailer

func (c *FiberContext) SetTrailer(md metadata.MD) error

func (*FiberContext) WriteHeader

func (c *FiberContext) WriteHeader(k, v string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL