adaptor

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRequest

func ConvertRequest(c *fiber.Ctx, forServer bool) (*http.Request, error)

ConvertRequest converts a fiber.Ctx to a http.Request. forServer should be set to true when the http.Request is going to be passed to a http.Handler.

func CopyContextToFiberContext

func CopyContextToFiberContext(context interface{}, requestContext *fasthttp.RequestCtx)

CopyContextToFiberContext copies the values of context.Context to a fasthttp.RequestCtx

func FiberApp

func FiberApp(app *fiber.App) http.HandlerFunc

FiberApp wraps fiber app to net/http handler func

func FiberHandler

func FiberHandler(h fiber.Handler) http.Handler

FiberHandler wraps fiber handler to net/http handler

func FiberHandlerFunc

func FiberHandlerFunc(h fiber.Handler) http.HandlerFunc

FiberHandlerFunc wraps fiber handler to net/http handler func

func HTTPHandler

func HTTPHandler(h http.Handler) fiber.Handler

HTTPHandler wraps net/http handler to fiber handler

func HTTPHandlerFunc

func HTTPHandlerFunc(h http.HandlerFunc) fiber.Handler

HTTPHandlerFunc wraps net/http handler func to fiber handler

func HTTPMiddleware

func HTTPMiddleware(mw func(http.Handler) http.Handler) fiber.Handler

HTTPMiddleware wraps net/http middleware to fiber middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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