OxL Reference

method Reply.empty

A reply with no body (default 204 No Content).

Example:

oxl✓ checked in CI
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) -> Reply

Since. 1.0.0-beta

Parameters

NameType
statusi64 = 204

Returns

Reply

Effects

none declared (pure unless the body says otherwise)

Defined in: std/http/http.oxl:2741

See also