Documentation ¶
Index ¶
- func ValidateResponse(url string, resp *http.Response, respBody []byte) error
- type BadResponseCodeError
- type JsonClient
- func (jc JsonClient) CallApi(requestContext RequestContext) ([]byte, error, *http.Response)
- func (jc JsonClient) Get(context RequestContext) ([]byte, error, *http.Response)
- func (jc JsonClient) Post(context RequestContext) ([]byte, error, *http.Response)
- func (jc JsonClient) ScanToTarget(context RequestContext, target interface{}) error
- func (jc JsonClient) ScanToTargetRecoveringOnProxyFailure(context RequestContext, target interface{}) error
- type RequestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadResponseCodeError ¶
type BadResponseCodeError struct {
// contains filtered or unexported fields
}
func NewBadResponseCodeError ¶
func NewBadResponseCodeError(url string, resp *http.Response, respBody []byte) BadResponseCodeError
func (BadResponseCodeError) Error ¶
func (brce BadResponseCodeError) Error() string
type JsonClient ¶
type JsonClient struct{}
func NewJsonClient ¶
func NewJsonClient() JsonClient
func (JsonClient) CallApi ¶
func (jc JsonClient) CallApi(requestContext RequestContext) ([]byte, error, *http.Response)
func (JsonClient) Get ¶
func (jc JsonClient) Get(context RequestContext) ([]byte, error, *http.Response)
func (JsonClient) Post ¶
func (jc JsonClient) Post(context RequestContext) ([]byte, error, *http.Response)
func (JsonClient) ScanToTarget ¶
func (jc JsonClient) ScanToTarget(context RequestContext, target interface{}) error
func (JsonClient) ScanToTargetRecoveringOnProxyFailure ¶
func (jc JsonClient) ScanToTargetRecoveringOnProxyFailure(context RequestContext, target interface{}) error
Click to show internal directories.
Click to hide internal directories.