Documentation
¶
Index ¶
- func HTTPRequestAdapterResponse(target executorhttp.ResponseWriter, source *resty.Response, err error) error
- type HTTPClientAdapter
- type HTTPRequestAdapter
- func (r HTTPRequestAdapter) Delete(target executorhttp.ResponseWriter, url *url.URL) error
- func (r HTTPRequestAdapter) Get(target executorhttp.ResponseWriter, url *url.URL) error
- func (r HTTPRequestAdapter) Patch(target executorhttp.ResponseWriter, url *url.URL) error
- func (r HTTPRequestAdapter) Post(target executorhttp.ResponseWriter, url *url.URL) error
- func (r HTTPRequestAdapter) Put(target executorhttp.ResponseWriter, url *url.URL) error
- func (r HTTPRequestAdapter) SetBody(body io.ReadCloser) executorhttp.Requester
- func (r HTTPRequestAdapter) SetContext(ctx context.Context) executorhttp.Requester
- func (r HTTPRequestAdapter) SetHeaders(headers map[string]string) executorhttp.Requester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPRequestAdapterResponse ¶ added in v0.6.0
func HTTPRequestAdapterResponse(target executorhttp.ResponseWriter, source *resty.Response, err error) error
Types ¶
type HTTPClientAdapter ¶ added in v0.6.0
type HTTPClientAdapter struct {
// contains filtered or unexported fields
}
func NewHTTPClientAdapter ¶ added in v0.6.0
func NewHTTPClientAdapter(client *http.Client) *HTTPClientAdapter
func (*HTTPClientAdapter) Request ¶ added in v0.6.0
func (r *HTTPClientAdapter) Request() executorhttp.Requester
type HTTPRequestAdapter ¶ added in v0.6.0
type HTTPRequestAdapter struct {
// contains filtered or unexported fields
}
func (HTTPRequestAdapter) Delete ¶ added in v0.6.0
func (r HTTPRequestAdapter) Delete(target executorhttp.ResponseWriter, url *url.URL) error
func (HTTPRequestAdapter) Get ¶ added in v0.6.0
func (r HTTPRequestAdapter) Get(target executorhttp.ResponseWriter, url *url.URL) error
func (HTTPRequestAdapter) Patch ¶ added in v0.6.0
func (r HTTPRequestAdapter) Patch(target executorhttp.ResponseWriter, url *url.URL) error
func (HTTPRequestAdapter) Post ¶ added in v0.6.0
func (r HTTPRequestAdapter) Post(target executorhttp.ResponseWriter, url *url.URL) error
func (HTTPRequestAdapter) Put ¶ added in v0.6.0
func (r HTTPRequestAdapter) Put(target executorhttp.ResponseWriter, url *url.URL) error
func (HTTPRequestAdapter) SetBody ¶ added in v0.6.0
func (r HTTPRequestAdapter) SetBody(body io.ReadCloser) executorhttp.Requester
func (HTTPRequestAdapter) SetContext ¶ added in v0.6.0
func (r HTTPRequestAdapter) SetContext(ctx context.Context) executorhttp.Requester
func (HTTPRequestAdapter) SetHeaders ¶ added in v0.6.0
func (r HTTPRequestAdapter) SetHeaders(headers map[string]string) executorhttp.Requester
Click to show internal directories.
Click to hide internal directories.