Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request(t test.TestHelper, url string, requestOption RequestOption, checks ...HTTPResponseCheckFunc) []byte
Types ¶
type HTTPResponseCheckFunc ¶
type NilRequestOption ¶
type NilRequestOption struct{}
func (NilRequestOption) ApplyToClient ¶
func (n NilRequestOption) ApplyToClient(client *http.Client) error
func (NilRequestOption) ApplyToRequest ¶
func (n NilRequestOption) ApplyToRequest(req *http.Request) error
type RequestOption ¶
type RequestOption interface {
ApplyToRequest(req *http.Request) error
ApplyToClient(client *http.Client) error
}
func WithContext ¶
func WithContext(ctx context.Context) RequestOption
func WithCookieJar ¶
func WithCookieJar(jar *cookiejar.Jar) RequestOption
Click to show internal directories.
Click to hide internal directories.