xhttp

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientError

type ClientError struct {
	// contains filtered or unexported fields
}

ClientError is a custom error type for errors happening when calling an HTTP endpoint.

func NewClientError

func NewClientError(resp *http.Response) *ClientError

NewClientError creates a new HTTP client error.

func (*ClientError) Error

func (e *ClientError) Error() string

func (*ClientError) StatusCode

func (e *ClientError) StatusCode() int

StatusCode returns the status code of the HTTP response.

Jump to

Keyboard shortcuts

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