fiberctx

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context = reqctx.Context[RequestCtx]

func FromContextValue

func FromContextValue(ctx context.Context) *Context

func FromRequest

func FromRequest(req fiber.Ctx) *Context

type RequestCtx added in v0.2.0

type RequestCtx struct {
	fiber.Ctx
}

func (RequestCtx) AddHeader added in v0.2.0

func (ctx RequestCtx) AddHeader(k, v string)

func (RequestCtx) ConvertToFastHttpCtx added in v0.2.0

func (ctx RequestCtx) ConvertToFastHttpCtx() *fasthttpctx.RequestCtx

func (RequestCtx) GetHeader added in v0.2.0

func (ctx RequestCtx) GetHeader(k string) string

func (RequestCtx) SetHeader added in v0.2.0

func (ctx RequestCtx) SetHeader(k, v string)

func (RequestCtx) SetHeaders added in v0.2.0

func (ctx RequestCtx) SetHeaders(md http.Header)

Jump to

Keyboard shortcuts

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