Module response

Module response 

Source
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