httpx

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHTTPOk

func IsHTTPOk(r *http.Response) bool

func IsNotFound

func IsNotFound(err error) bool

func WithBearer

func WithBearer(base http.RoundTripper, token string) http.RoundTripper

Types

type HTTPError

type HTTPError struct {
	Resp *http.Response
	Body []byte
	Err  error
}

func HTTPResponseErr

func HTTPResponseErr(
	r *http.Response,
	msg string,
) *HTTPError

func (*HTTPError) Error

func (e *HTTPError) Error() string

func (*HTTPError) StatusCode

func (e *HTTPError) StatusCode() int

StatusCode implements [internal.StatusCodeErr]

type StatusCodeErr

type StatusCodeErr interface {
	StatusCode() int
}

Jump to

Keyboard shortcuts

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