modulepackage
0.0.0-20240228012849-4b303ee7b189
Repository: https://github.com/gobs/httpclient.git
Documentation: pkg.go.dev
# README
httpclient
More flexible http client library for Go
Installation
$ go get github.com/gobs/httpclient
Documentation
# Packages
No description provided by the author
# Functions
set the Accept header.
Allow connections via HTTPS even if something is wrong with the certificate (self-signed or expired).
set the request body as an io.Reader.
CheckStatus returns err if not null or an HTTP status if the response was not "succesfull"
usage:
resp, err := httpclient.CheckStatus(httpclient.SendRequest(params...)).
CloseResponse makes sure we close the response body.
set the Content-Length header.
set the Content-Type header.
set request context.
Disable HTTP/2 client support.
set the request body as a form object.
http.Get with params.
set specified HTTP headers.
set the request body as a JSON object.
Wrap input transport into a LoggingTransport.
Set the request method.
Create a new HttpClient.
No description provided by the author
Creates an HttpFile object.
set the request URL parameters.
ParamValues fills the input url.Values according to params.
set the request path.
http.Post with params.
Set connection timeout.
Enable logging requests/response headers
if requestBody == true, also log request body if responseBody == true, also log response body if timing == true, also log elapsed time.
Disable logging requests/responses.
set the request URL parameters.
set request ClientTrace.
set the request URL.
set the request URL (passed as string).
No description provided by the author
Given a base URL and a bag of parameteters returns the URL with the encoded parameters.
# Constants
No description provided by the author
No description provided by the author
# Variables
we use our own default client, so we can change the TLS configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
http.Client with some defaults and stuff.
HTTP error.
HttpFile is a file-like object that allows reading and seeking from an http resources (via an HTTP GET with Range request).
HttpFileError wraps a network error.
A wrapper for http.Response.
No description provided by the author
No description provided by the author
No description provided by the author