http

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(srcURL string, filename string, flag int, perm fs.FileMode, withProgress bool) (size int64, err error)

Download saves the remote resource to local file with progress support.

func DownloadAsBytes added in v1.4.0

func DownloadAsBytes(srcURL string) (data []byte, err error)

DownloadAsBytes fetches the resource and returns its raw byte content.

func IsSuccess added in v1.6.0

func IsSuccess(statusCode int) bool

IsSuccess determines if the HTTP status code indicates successful response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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