Documentation ¶
Index ¶
- func ConvertRequest(c *fiber.Ctx, forServer bool) (*http.Request, error)
- func CopyContextToFiberContext(context interface{}, requestContext *fasthttp.RequestCtx)
- func FiberApp(app *fiber.App) http.HandlerFunc
- func FiberHandler(h fiber.Handler) http.Handler
- func FiberHandlerFunc(h fiber.Handler) http.HandlerFunc
- func HTTPHandler(h http.Handler) fiber.Handler
- func HTTPHandlerFunc(h http.HandlerFunc) fiber.Handler
- func HTTPMiddleware(mw func(http.Handler) http.Handler) fiber.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertRequest ¶
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 ¶
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 ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.