package
0.0.0-20200624142959-f1bfc611c388
Repository: https://github.com/lelinu/golang-restclient.git
Documentation: pkg.go.dev
# Functions
AddMockups ...
AsyncDelete is the *asynchronous* option for DELETE.
AsyncGet is the *asynchronous* option for GET.
AsyncHead is the *asynchronous* option for HEAD.
AsyncOptions is the *asynchronous* option for OPTIONS.
AsyncPatch is the *asynchronous* option for PATCH.
AsyncPost is the *asynchronous* option for POST.
AsyncPut is the *asynchronous* option for PUT.
Delete issues a DELETE HTTP verb to the specified URL
In Restful, DELETE is used to "delete" a resource.
FlushMockups ...
ForkJoin let you *fork* requests, and *wait* until all of them have return.
Get issues a GET HTTP verb to the specified URL.
Head issues a HEAD HTTP verb to the specified URL
In Restful, HEAD is used to "read" a resource headers only.
Options issues a OPTIONS HTTP verb to the specified URL
In Restful, OPTIONS is used to get information about the resource and supported HTTP verbs.
Patch issues a PATCH HTTP verb to the specified URL
In Restful, PATCH is used for "partially updating" a resource.
Post issues a POST HTTP verb to the specified URL.
Put issues a PUT HTTP verb to the specified URL.
StartMockupServer sets the enviroment to send all client requests to the mockup server.
StopMockupServer stop sending requests to the mockup server.
# Variables
No description provided by the author
DefaultMaxIdleConnsPerHost is the default maxium idle connections to have per Host for all clients, that use *any* RequestBuilder that don't set a CustomPool.
DefaultTimeout is the default timeout for all clients.
MaxCacheSize is the Maxium Byte Size to be hold by the ResourceCache Default is 1 GigaByte Type: rest.ByteSize.
# Structs
BasicAuth gives the possibility to set UserName and Password for a given RequestBuilder.
Concurrent has methods for Get, Post, Put, Patch, Delete, Head & Options, with the almost the same API as the synchronous methods.
CustomPool defines a separate internal *transport* and connection pooling.
FutureResponse represents a response to be completed after a ForkJoin operation is done.
Mock serves the purpose of creating Mockups.
RequestBuilder is the baseline for creating requests There's a Default Builder that you may use for simple requests RequestBuilder si thread-safe, and you should store it for later re-used.
Response ...
# Type aliases
ByteSize is a helper for configuring MaxCacheSize.
ContentType represents the Content Type for the Body of HTTP Verbs like POST, PUT, and PATCH.