Expand description
Extensions for working with HTTP responses
Functionsยง
- bad_
request - Returns a
Result<spin_sdk::http::Response>representing a 400 Bad Request - no_
content - Returns a
Result<spin_sdk::http::Response>representing a 204 No Content - redirect
- Returns a
Result<spin_sdk::http::Response>representing a redirect to the provided URL with the provided status code and Location header - status_
code - Returns a
Result<spin_sdk::http::Response>with desired status code