Versions in this module Expand all Collapse all v0 v0.0.3 Aug 17, 2021 v0.0.2 Aug 17, 2021 Changes in this version + type Options struct + BaseURI string + Cookies interface{} + Debug bool + FormParams map[string]interface{} + Headers map[string]interface{} + JSON interface{} + Proxy string + Query interface{} + Timeout float32 + XML interface{} + type Request struct + func NewClient(opts ...Options) *Request + func (r *Request) Delete(uri string, opts ...Options) (*Response, error) + func (r *Request) Get(uri string, opts ...Options) (*Response, error) + func (r *Request) Options(uri string, opts ...Options) (*Response, error) + func (r *Request) Patch(uri string, opts ...Options) (*Response, error) + func (r *Request) Post(uri string, opts ...Options) (*Response, error) + func (r *Request) Put(uri string, opts ...Options) (*Response, error) + func (r *Request) Request(method, uri string, opts ...Options) (*Response, error) + type Response struct + func Delete(uri string, opts ...Options) (*Response, error) + func Get(uri string, opts ...Options) (*Response, error) + func Patch(uri string, opts ...Options) (*Response, error) + func Post(uri string, opts ...Options) (*Response, error) + func Put(uri string, opts ...Options) (*Response, error) + func (r *Response) GetBody() (ResponseBody, error) + func (r *Response) GetHeader(name string) []string + func (r *Response) GetHeaderLine(name string) string + func (r *Response) GetHeaders() map[string][]string + func (r *Response) GetParsedBody() (*gjson.Result, error) + func (r *Response) GetReasonPhrase() string + func (r *Response) GetRequest() *http.Request + func (r *Response) GetStatusCode() int + func (r *Response) HasHeader(name string) bool + func (r *Response) IsTimeout() bool + type ResponseBody []byte + func (r ResponseBody) GetContents() string + func (r ResponseBody) Read(length int) []byte + func (r ResponseBody) String() string