OxL Reference

data Header

One header field. Names are case-insensitive when looked up.

Example:

oxl✓ checked in CI
use std.http { Header }

fn main() io {
  let h = Header{ name: "Content-Type", value: "application/json" }
  print("{h.name}: {h.value}")
}
Output
Content-Type: application/json
pub(api) data Header

Since. 1.0.0-beta

Fields

pub(api) name: str

Field name; case-insensitive when looked up.

pub(api) value: str

Field value.

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

See also