handler

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 12

Documentation

Index

Constants

View Source
const (
	// HeaderContentTypeKey missing godoc
	HeaderContentTypeKey = "Content-Type"
	// HeaderContentTypeValue missing godoc
	HeaderContentTypeValue = "application/json;charset=UTF-8"
)

Variables

This section is empty.

Functions

func WithTimeout

func WithTimeout(h http.Handler, timeout time.Duration) (http.Handler, error)

WithTimeout returns timeout http.Handler

func WithTimeoutWithErrorMessage

func WithTimeoutWithErrorMessage(h http.Handler, timeout time.Duration, msg []byte) (http.Handler, error)

WithTimeoutWithErrorMessage returns timeout http.Handler with provided error message

Types

This section is empty.

Jump to

Keyboard shortcuts

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