method Reply.empty
A reply with no body (default 204 No Content).
Example:
use std.http { Reply }
fn main() io {
print("{Reply.empty().status} {Reply.empty(304).status}")
}Output
204 304
pub(api) static fn empty(status: i64 = 204) -> ReplySince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
status | i64 = 204 |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/http/http.oxl:2741