httputil

package
v2.0.0-alpha.39 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserFixable

func IsUserFixable(statusCode int) bool

IsUserFixable reports whether statusCode indicates an error the caller can correct (bad request or unauthorized).

func PrintRequest

func PrintRequest(logger log.Logger, request *http.Request) error

PrintRequest dumps request (including body) to logger at debug level. A nil request is a no-op.

func PrintResponse

func PrintResponse(logger log.Logger, response *http.Response) error

PrintResponse dumps response (including body) to logger at debug level. A nil response is a no-op.

Types

This section is empty.

Jump to

Keyboard shortcuts

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