package
1.18.2
Repository: https://github.com/ethersphere/bee.git
Documentation: pkg.go.dev

# Functions

Request is a testing helper function that makes an HTTP request using provided client with provided method and url.
WithContext sets a context to the request made by the Request function.
WithExpectedContentLength is shorthand for creating "Content-Length" header check.
WithExpectedJSONResponse validates that the response from the request in the Request function matches JSON-encoded body provided here.
WithExpectedResponse validates that the response from the request in the Request function matches completely bytes provided here.
WithExpectedResponseHeader validates that the response from the request has header with specified value.
WithJSONRequestBody writes a request JSON-encoded body to the request made by the Request function.
WithMultipartRequest writes a multipart request with a single file in it to the request made by the Request function.
WithNonEmptyResponseHeader validates that the response from the request has header with non empty value.
WithNoResponseBody ensures that there is no data sent by the response of the request in the Request function.
WithPutResponseBody replaces the data in the provided byte slice with the data from the response body of the request in the Request function.
WithRequestBody writes a request body to the request made by the Request function.
WithRequestHeader adds a single header to the request made by the Request function.
WithUnmarshalJSONResponse unmarshals response body from the request in the Request function to the provided response.

# Interfaces

No description provided by the author