Versions in this module Expand all Collapse all v1 v1.3.1 Mar 13, 2020 Changes in this version + func DeleteCookie(key string) + func DeleteCookies(keys ...string) + func SetCookie(key, value string) + func SetCookies(cookies map[string]interface{}) + func SetHeader(key, value string) + func SetHeaders(headers map[string]interface{}) + type Body []byte + func (body Body) String() string + type Options struct + Cookies map[string]interface{} + Headers map[string]interface{} + type Request struct + func NewGET(url string) (*Request, error) + func NewPOST(url string, body io.Reader) (*Request, error) + func NewRequest(method, url string, body io.Reader) (*Request, error) + func (req *Request) Send() (*Response, error) + func (req *Request) SetCookie(key, value string) + func (req *Request) SetCookies(cookies map[string]interface{}) + func (req *Request) SetHeader(key, value string) + func (req *Request) SetHeaders(headers map[string]interface{}) + type Response struct + Body Body + Cookies []*http.Cookie + Header http.Header + StatusCode int + func Get(url string, options *Options) (*Response, error) + func Post(url string, options *Options, body io.Reader) (*Response, error) + func Send(method, url string, options *Options, body io.Reader) (*Response, error)