Help us shape the future of Go! Take the 2026 Go Developer Survey

httperr

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPRequest

func HTTPRequest(err error) (*http.Request, bool)

HTTPRequest extracts an HTTP request from an error (if any).

It loops through the whole error chain (if any). Deprecated: no replacement at this time.

func WithHTTPRequest

func WithHTTPRequest(err error, r *http.Request) error

WithHTTPRequest attaches an HTTP request to the error. Deprecated: no replacement at this time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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