Documentation
¶
Index ¶
- func NewDefaultVerifier() *defaultVerifier
- func ResponseBodyMatches(expectedBody []byte) *responseBodyMatches
- func ResponseCodeMatches(expectedResponseCode int) *responseCodeMatches
- func ResponseHeaderContains(headerName, expectedValue string) *responseHeaderContains
- type Matcher
- type Response
- type URLOptions
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultVerifier ¶
func NewDefaultVerifier() *defaultVerifier
func ResponseBodyMatches ¶
func ResponseBodyMatches(expectedBody []byte) *responseBodyMatches
ResponseBodyMatches asserts HTTP response body matches.
func ResponseCodeMatches ¶
func ResponseCodeMatches(expectedResponseCode int) *responseCodeMatches
ResponseCodeMatches asserts HTTP response code matches
func ResponseHeaderContains ¶
func ResponseHeaderContains(headerName, expectedValue string) *responseHeaderContains
ResponseHeaderContains asserts HTTP response header contains expected value
Types ¶
type URLOptions ¶
type URLOptions struct { // TLS options InsecureSkipVerify bool // Request options Method string HostHeader string Headers map[string]string FollowRedirects bool }
URLOptions contains options for HTTP/HTTPS requests
func DefaultURLOptions ¶
func DefaultURLOptions() URLOptions
DefaultURLOptions provides reasonable defaults for URLOptions
Click to show internal directories.
Click to hide internal directories.