Type Alias SapiHeader

Source
pub type SapiHeader = sapi_header_struct;
Expand description

Manage a key/value pair of SAPI headers.

Aliased Type§

#[repr(C)]
pub struct SapiHeader { pub header: *mut i8, pub header_len: usize, }

Fields§

§header: *mut i8§header_len: usize

Implementations§

Source§

impl<'a> SapiHeader

Source

pub fn as_str(&'a self) -> &'a str

Get the header as a string.

§Panics
  • If the header is not a valid UTF-8 string.
Source

pub fn name(&'a self) -> &'a str

Returns the header name (key).

Source

pub fn value(&'a self) -> Option<&'a str>

Returns the header value.