package
0.63.0
Repository: https://github.com/xplorfin/netutils.git
Documentation: pkg.go.dev

# Functions

GetRawURL gets a rawurl using fasthttp.
GetURL gets a string url and unzips body.
IsJSON determines whether a fasthttp response is brotli or json.
NewFastClient creates a fast client with a user agent this can be changed if needed in ModifyRequest.
UnzipBody unzips a fasthttp body that uses brotli, gzip, or borth.

# Constants

UserAgent contains the netutils user agent.

# Variables

AcceptEncoding is a byte encoded header for accepting encoding used to speed up fasthttp requests.
Authorization contains the authorization header.
Brotli is the long brotli header.
BrotliShort is the abbreviated brotli header.
ContentEncoding is the.
Byte encoded headers for convience.
Gzip is the gzip header defined here https://git.io/JYTcg.
GzipBrotli is the header for data encoded with both gzip and brotli.
JSONEncoding is the header for when data is json encoded.
UserAgentBytes contains the raw user agent encoded as a byte slice.

# Structs

FastClient represents a client used for requests.

# Type aliases

ModifyRequestFunc represents a function that allows a request to be modified before it is set.
ProcessResponseFunc represents a function that allows a response to be modified before it is set.