httpx

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadToFile

func DownloadToFile(dstPath string, resp *http.Response) error

func Fetch

func Fetch(url string, timeoutSeconds int, setAuth func(*http.Request)) (*http.Response, error)

func ForwardResponse

func ForwardResponse(w http.ResponseWriter, resp *http.Response)

func ParseFilename

func ParseFilename(resp *http.Response) (string, error)

func SendFile

func SendFile(w http.ResponseWriter, filePath, outFilename string) error

func WriteRecorder

func WriteRecorder(rec *httptest.ResponseRecorder, w http.ResponseWriter)

WriteRecorder copies the contents of a ResponseRecorder to a ResponseWriter

Types

This section is empty.

Jump to

Keyboard shortcuts

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