Documentation ¶
Index ¶
- type Caller
- type HttpClient
- func (this *HttpClient) AddHeader(key, value string) *HttpClient
- func (this *HttpClient) BasePath(url string) *HttpClient
- func (this *HttpClient) Call(req *http.Request, successF, failureF interface{}) (*http.Response, error)
- func (this *HttpClient) Caller(caller *http.Client) *HttpClient
- func (this *HttpClient) Client(hc *http.Client) *HttpClient
- func (this *HttpClient) Get(path string) *HttpClient
- func (this *HttpClient) Head(path string) *HttpClient
- func (this *HttpClient) New() *HttpClient
- func (this *HttpClient) Path(path string) *HttpClient
- func (this *HttpClient) Post(path string) *HttpClient
- func (this *HttpClient) Query(params interface{}) *HttpClient
- func (this *HttpClient) Receive(successF, failureF interface{}) (*http.Response, error)
- func (this *HttpClient) Request() (*http.Request, error)
- func (this *HttpClient) SetBody(bodyJson interface{}) *HttpClient
- func (this *HttpClient) SetHeader(key, value string) *HttpClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct { Doer Caller // contains filtered or unexported fields }
func (*HttpClient) AddHeader ¶
func (this *HttpClient) AddHeader(key, value string) *HttpClient
Add header
func (*HttpClient) Caller ¶
func (this *HttpClient) Caller(caller *http.Client) *HttpClient
Set the caller
func (*HttpClient) Client ¶
func (this *HttpClient) Client(hc *http.Client) *HttpClient
Set httpi client for tranportation OAuth impelemntation
func (*HttpClient) Query ¶
func (this *HttpClient) Query(params interface{}) *HttpClient
func (*HttpClient) Receive ¶
func (this *HttpClient) Receive(successF, failureF interface{}) (*http.Response, error)
Return Receive
func (*HttpClient) Request ¶
func (this *HttpClient) Request() (*http.Request, error)
Return a http.Request
func (*HttpClient) SetBody ¶
func (this *HttpClient) SetBody(bodyJson interface{}) *HttpClient
Set body json
func (*HttpClient) SetHeader ¶
func (this *HttpClient) SetHeader(key, value string) *HttpClient
Set Header
Click to show internal directories.
Click to hide internal directories.