timeout

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timout

type Timout struct {
	Timeout        time.Duration
	TimeoutHandler http.Handler
}

Timout sets a write header timeout

func New

func New(timeout time.Duration) *Timout

New creates timeout middleware

func (Timout) ServeHandler

func (m Timout) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

Jump to

Keyboard shortcuts

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