modulepackage
0.0.0-20250130022920-c736659be420
Repository: https://github.com/stdutil/http.git
Documentation: pkg.go.dev
# Functions
Compressed sets the request compression as an option
This is used with <REST verb>Api functions.
CreateApi posts data on an API endpoint and converts the returned data into a resulting type.
DeleteApi deletes data on an API endpoint and converts the returned data into a resulting type.
DeleteJson wraps http.Delete and gets a raw json message data.
ExecuteApi wraps http operation that change or read data and returns a byte array
On headers: - Content-Type: If this header is not set, it defaults to "application/json"// - Content-Encoding: If compressed is true, it is set to "gzip".
ExecuteJsonApi wraps http operation that change or read data and returns a custom result.
GetJson wraps http.Get and gets a raw json message data.
GetRequestVars requests variables and return JWT validation result.
GetRequestVarsOnly get request variables.
Headers adds request headers as an option
This is used with <REST verb>Api functions.
ParseJwt validates, parses JWT and returns information using HMAC256 algorithm.
ParseQueryString parses the query string into a column value.
ParseRouteVars parses custom routes from a mux handler.
PatchApi patches data on an API endpoint and converts the returned data into a resulting type.
PatchJson wraps http.Patch and gets a raw json message data.
PostJson wraps http.Post and gets a raw json message data.
PutJson wraps http.Put and gets a raw json message data.
ReadApi retrieves data on an API endpoint and converts the returned data into a resulting type.
SetRequestTimeOut sets the new timeout value.
SignJwt builds a JWT token using HMAC256 algorithm.
TimeOut sets the request timeout as an option
This is used with <REST verb>Api functions.
UpdateApi updates data on an API endpoint and converts the returned data into a resulting type.
ValidateJwt validates JWT and returns information using HMAC256 algorithm.
# Constants
No description provided by the author
No description provided by the author
# Variables
Errors.
# Structs
No description provided by the author
CustomVars - command struct.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author