package
12.2.11
Repository: https://github.com/kataras/iris.git
Documentation: pkg.go.dev

# Functions

BaseURL registers the base URL of this client.
BindResponse consumes the response's body and binds the result to the "dest" pointer, closing the response's body is up to the caller.
Debug enables the client's debug logger.
DecodeError binds a json error to the "destPtr".
ExtractError returns the response wrapped inside an APIError.
GetError reports whether the given "err" is an APIError.
GetErrorCode reads an error, which should be a type of APIError, and returns its status code.
Handler specifies an iris.Application or any http.Handler instance which can be tested using this Client.
New returns a new Iris HTTP Client.
PersistentRequestOptions adds one or more persistent request options that all requests made by this Client will respect.
RateLimit configures the rate limit for requests.
RegisterRequestHandler registers one or more request handlers to be ran before and after of each request on all newly created Iris HTTP Clients.
RequestAuthorization sets an Authorization request header.
RequestAuthorizationBearer sets an Authorization: Bearer $token request header.
RequestHeader adds or sets (if overridePrev is true) a header to the request.
RequestParam sets a single URL query parameter to the request.
RequestQuery adds a set of URL query parameters to the request.
Timeout specifies a time limit for requests made by this Client.

# Variables

NoOption is a helper function that clears the previous options in the chain.

# Structs

APIError errors that may return from the Client.
A Client is an HTTP client.
Uploader holds the necessary information for upload requests.

# Interfaces

RequestHandler can be set to each Client instance and it should be responsible to handle the begin and end states of each request.

# Type aliases

RequestOption declares the type of option one can pass to the Do methods(JSON, Form, ReadJSON...).