Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpExpression ¶
type HttpExpression struct {
// contains filtered or unexported fields
}
func (*HttpExpression) Respond ¶
func (e *HttpExpression) Respond(response *http.Response) *MockHttpClient
func (*HttpExpression) RespondFn ¶
func (e *HttpExpression) RespondFn(responseFn RespondFn) *MockHttpClient
func (*HttpExpression) SetNonRetriableError ¶
func (e *HttpExpression) SetNonRetriableError(err error) *MockHttpClient
func (*HttpExpression) SetRetriableError ¶
func (e *HttpExpression) SetRetriableError(err error) *MockHttpClient
type MockHttpClient ¶
type MockHttpClient struct {
// contains filtered or unexported fields
}
func NewMockHttpUtil ¶
func NewMockHttpUtil() *MockHttpClient
func (*MockHttpClient) CloseIdleConnections ¶
func (c *MockHttpClient) CloseIdleConnections()
func (*MockHttpClient) Reset ¶
func (c *MockHttpClient) Reset()
func (*MockHttpClient) When ¶
func (c *MockHttpClient) When(predicate RequestPredicate) *HttpExpression
type RequestPredicate ¶
Click to show internal directories.
Click to hide internal directories.