request

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERR_CONTENT_TO_LARGE = errors.New("err content to large")
View Source
var ERR_NEGATIVE_SIZE = errors.New("err negative size")
View Source
var ERR_STATUS_NOT_OK = errors.New("status not ok")

Functions

func CalculateGiB

func CalculateGiB(size int64) (int64, error)

func CalculateKiB

func CalculateKiB(size int64) (int64, error)

func CalculateMiB

func CalculateMiB(size int64) (int64, error)

func Do

func Do(url string, userAgent string, limit int64) (string, error)

func ReadLimitedBytes

func ReadLimitedBytes(r io.Reader, limit int64) ([]byte, error)

func ReadLimitedBytesWithSizeCheck

func ReadLimitedBytesWithSizeCheck(r io.Reader, limit int64) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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