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

# Packages

Package jsonhttptest helps with end-to-end testing of JSON-based HTTP APIs.

# Functions

Accepted writes a response with status code 202.
BadGateway writes a response with status code 502.
BadRequest writes a response with status code 400.
Conflict writes a response with status code 409.
Continue writes a response with status code 100.
Created writes a response with status code 201.
ExpectationFailed writes a response with status code 417.
Forbidden writes a response with status code 403.
Found writes a response with status code 302.
GatewayTimeout writes a response with status code 504.
Gone writes a response with status code 410.
HandleBodyReadError checks for particular errors and writes appropriate response accordingly.
HandleMethods uses a corresponding Handler based on HTTP request method.
HTTPVersionNotSupported writes a response with status code 505.
InternalServerError writes a response with status code 500.
LengthRequired writes a response with status code 411.
MethodNotAllowed writes a response with status code 405.
MovedPermanently writes a response with status code 301.
MultipleChoices writes a response with status code 300.
NewMaxBodyBytesHandler is an http middleware constructor that limits the maximal number of bytes that can be read from the request body.
NoContent writes a response with status code 204.
NonAuthoritativeInfo writes a response with status code 203.
NotAcceptable writes a response with status code 406.
NotFound writes a response with status code 404.
No description provided by the author
NotImplemented writes a response with status code 501.
NotModified writes a response with status code 304.
OK writes a response with status code 200.
PartialContent writes a response with status code 206.
PaymentRequired writes a response with status code 402.
PermanentRedirect writes a response with status code 308.
PreconditionFailed writes a response with status code 412.
PreconditionRequired writes a response with status code 428.
ProxyAuthRequired writes a response with status code 407.
RequestedRangeNotSatisfiable writes a response with status code 416.
RequestEntityTooLarge writes a response with status code 413.
RequestHeaderFieldsTooLarge writes a response with status code 431.
RequestTimeout writes a response with status code 408.
RequestURITooLong writes a response with status code 414.
ResetContent writes a response with status code 205.
Respond writes a JSON-encoded body to http.ResponseWriter.
SeeOther writes a response with status code 303.
ServiceUnavailable writes a response with status code 503.
SwitchingProtocols writes a response with status code 101.
Teapot writes a response with status code 418.
TemporaryRedirect writes a response with status code 307.
TooManyRequests writes a response with status code 429.
Unauthorized writes a response with status code 401.
UnavailableForLegalReasons writes a response with status code 451.
UnprocessableEntity writes a response with status code 422.
UnsupportedMediaType writes a response with status code 415.
UpgradeRequired writes a response with status code 426.
UseProxy writes a response with status code 305.

# Variables

DefaultContentTypeHeader is the value of if "Content-Type" header in HTTP response.
EscapeHTML specifies whether problematic HTML characters should be escaped inside JSON quoted strings.

# Structs

Reason represents a reason for an invalid request entry.
StatusResponse is a standardized error format for specific HTTP responses.

# Type aliases

No description provided by the author