http

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAcceptHeader            = errors.New("Accept header error; should look like `application/vnd.dice+json; version=1.0`")
	ErrAcceptHeaderNotExist    = errors.New("Accept header not exist")
	ErrRequestIDHeaderNotExist = errors.New("Request-ID header not exist")
	ErrContentTypeHeader       = errors.New("Content-Type header error; it should be `application/json`")
)

Functions

func ValidateRequest

func ValidateRequest(req *nethttp.Request) (*nethttp.Request, error)

func ValidateResponse

func ValidateResponse(res *nethttp.Response) (*nethttp.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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