Versions in this module Expand all Collapse all v1 v1.0.8 Jun 7, 2019 Changes in this version + func BuildUrl(req *HttpRequest) string + type HttpHeader struct + Name string + Value string + type HttpInvoker interface + Do func(req *HttpRequest, interceptors ...Interceptor) (res *HttpResponse, err error) + type HttpInvokerImpl struct + func NewHttpInvoker(opts *HttpInvokerOptions) (c *HttpInvokerImpl, err error) + func (c *HttpInvokerImpl) Do(req *HttpRequest, interceptors ...Interceptor) (*HttpResponse, error) + type HttpInvokerOptions struct + PDP string + type HttpRequest struct + Body string + Headers []HttpHeader + Method string + PDP string + Path string + Timeout *string + Url string + func (r *HttpRequest) GetRawRequest() (req *http.Request, err error) + type HttpResponse struct + Body []byte + ContentLength int64 + Header http.Header + Status string + StatusCode int + Version string + func NewHttpResponse(lowRes *http.Response) (res *HttpResponse, err error) + func (r *HttpResponse) GetRawResponse() (res *http.Response, err error) + type Interceptor interface + type PostProcessor interface + PostProcess func(req *HttpRequest, res *HttpResponse) error + type PreProcessor interface + PreProcess func(req *HttpRequest) error