data Header
One header field. Names are case-insensitive when looked up.
Example:
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 HeaderSince. 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