timeout

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New deprecated

func New(handler fiber.Handler, timeout time.Duration) fiber.Handler

New wraps a handler and aborts the process of the handler if the timeout is reached.

Deprecated: This implementation contains data race issues. Use NewWithContext instead. Find documentation and sample usage on https://docs.gofiber.io/api/middleware/timeout

func NewWithContext

func NewWithContext(h fiber.Handler, t time.Duration, tErrs ...error) fiber.Handler

NewWithContext implementation of timeout middleware. Set custom errors(context.DeadlineExceeded vs) for get fiber.ErrRequestTimeout response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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