Versions in this module Expand all Collapse all v1 v1.2.3 Jul 18, 2024 v1.2.2 Jul 13, 2024 Changes in this version type ConcurrentResponse + Request *Request v1.2.1 Jul 13, 2024 v1.2.0 Jul 13, 2024 v1.1.0 Jul 12, 2024 Changes in this version type Response + TimeElapsed time.Duration v1.0.0 Jun 2, 2024 Changes in this version + func GenerateURI(uri string, queryParams map[string]string) string + func GetResponseHeaders(resp *fasthttp.Response) map[string]string + func SetHeaders(req *fasthttp.Request, headers map[string]string) + func SetHeadersInRequest(headers interface{}, req *fasthttp.Request) error + func SetQueryParamsInURI(queryParams interface{}, uri string) (string, error) + func SetRequestBody(body interface{}, req *fasthttp.Request) error + type ClientInterface interface + Do func(uri string, method string, queryParams any, headers any, body any) (*Response, error) + type ConcurrentResponse struct + Error error + Response *Response + func MakeConcurrentRequests(requests []*Request, client ClientInterface) []*ConcurrentResponse + func NewConcurrentResponse(response *Response, err error) *ConcurrentResponse + type FHClient struct + Client *fasthttp.Client + func NewFHClient(fasthttp *fasthttp.Client) *FHClient + func (c *FHClient) Do(uri string, method string, queryParams any, headers any, reqBody any) (*Response, error) + type RateLimitedClient struct + FHClient *FHClient + PerSeconds int + RateLimited *rate.Limiter + Requests int + func NewRateLimitedClient(requests int, perSeconds int, fasthttp *fasthttp.Client) *RateLimitedClient + func (rc *RateLimitedClient) Do(uri string, method string, queryParams any, headers any, reqBody any) (*Response, error) + type Request struct + Body any + Headers any + Method string + QueryParams any + Uri string + func NewRequest(uri string, method string, queryParams any, headers any, body any) *Request + type Response struct + Body []byte + CurlCommand string + Headers map[string]string + StatusCode int + func Connect(client ClientInterface, uri string, queryParams any, headers any) (*Response, error) + func Delete(client ClientInterface, uri string, queryParams any, headers any, body any) (*Response, error) + func Get(client ClientInterface, uri string, queryParams any, headers any) (*Response, error) + func Head(client ClientInterface, uri string, queryParams any, headers any) (*Response, error) + func NewResponse(statusCode int, headers map[string]string, body []byte, curlCmd string) *Response + func Options(client ClientInterface, uri string, queryParams any, headers any) (*Response, error) + func Patch(client ClientInterface, uri string, queryParams any, headers any, body any) (*Response, error) + func Post(client ClientInterface, uri string, queryParams any, headers any, body any) (*Response, error) + func Put(client ClientInterface, uri string, queryParams any, headers any, body any) (*Response, error) + func Trace(client ClientInterface, uri string, queryParams any, headers any) (*Response, error)