Expand description
Common builders for RPC responses. Contains common builders for hyper responses.
Functions§
- host_
not_ allowed - Create a text/plain response for not allowed hosts.
- internal_
error - Create a response for json internal error.
- invalid_
allow_ headers - Create a text/plain response for invalid CORS “Allow-*” headers.
- invalid_
allow_ origin - Create a text/plain response for invalid CORS “Origin” headers.
- malformed
- Create a json response for empty or malformed requests (400)
- method_
not_ allowed - Create a text/plain response for disallowed method used.
- ok_
response - Create a valid JSON response.
- too_
large - Create a json response for oversized requests (413)
- unsupported_
content_ type - Create a response for unsupported content type.