package
0.0.0-20250307173044-634e8ce82c05
Repository: https://github.com/sapcc/go-bits.git
Documentation: pkg.go.dev
# Functions
NewHandler wraps the given http.Handler in type Handler to provide extra convenience methods.
ReceiveJSONInto adds parsing of a JSON response body to an HTTP request.
WithBody adds a request body to an HTTP request.
WithHeader adds a single HTTP header to an HTTP request.
WithHeaders adds several HTTP headers to an HTTP request.
WithJSONBody adds a JSON request body to an HTTP request.
# Structs
Handler is a wrapper around http.Handler providing convenience methods for use in tests.
# Type aliases
RequestOption controls optional behavior in func Handler.RespondTo().