Versions in this module Expand all Collapse all v1 v1.0.1 Jul 9, 2021 Changes in this version type Response + func (r *Response) GetJson() gjson.Result + func (r *Response) GetJsonPath(path string) gjson.Result v1.0.0 Aug 19, 2020 Changes in this version + const FormContentType + const JsonContentType + const TextContentType + const XmlContentType + var Conf *viper.Viper + var RSAPrivateKey = ... + var RSAPublicKey = ... + func Config() *viper.Viper + func NewHttpClient(fn RoundTripFunc) *http.Client + func NewHttpClientSuite(suite []HttpClientSuite) *http.Client + func NewRedis() *redis.Redis + type HttpClientSuite struct + Error error + Header http.Header + MatchBody map[string]interface{} + MatchQuery map[string]interface{} + ResponseBody string + StatusCode int + URI string + type Request struct + func NewRequest(url string, handlers ...gee.HandlerFunc) *Request + func NewRequestWithPath(path, url string, handlers ...gee.HandlerFunc) *Request + func (r *Request) BeforeHook(fn func(req *http.Request)) + func (r *Request) Form(values *url.Values) (*Response, error) + func (r *Request) Get() (*Response, error) + func (r *Request) JSON(data interface{}) (*Response, error) + func (r *Request) Post(contentType string, body io.Reader) (*Response, error) + func (r *Request) XML(body string) (*Response, error) + type Response struct + func (r *Response) GetBody() []byte + func (r *Response) GetBodyString() string + func (r *Response) GetJsonBody(path string) gjson.Result + type RoundTripFunc func(req *http.Request) (*http.Response, error) + func (f RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)