pub struct HttpHeaders<'buf, const HL: usize> {
pub content_length: Option<usize>,
pub headers_length: usize,
pub count: usize,
/* private fields */
}Fields§
§content_length: Option<usize>§headers_length: usize§count: usizeImplementations§
Source§impl<'buf, const HL: usize> HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> HttpHeaders<'buf, HL>
Sourcepub fn lines(&self) -> &[HeaderLine<'buf>]
pub fn lines(&self) -> &[HeaderLine<'buf>]
FIX: This is the method your mod.rs:363 needs!
Sourcepub fn get(&self, key: &str) -> Option<&HeaderValue<'buf>>
pub fn get(&self, key: &str) -> Option<&HeaderValue<'buf>>
FIX: Getter for generic access
pub fn get_as_bytes(&self, key: &str) -> Option<&'buf [u8]>
pub fn get_as_str(&self, key: &str) -> Option<&'buf str>
Sourcepub fn content_length(&self) -> Option<&usize>
pub fn content_length(&self) -> Option<&usize>
FIX: Return Option<&usize> to match your getter logic
Trait Implementations§
Auto Trait Implementations§
impl<'buf, const HL: usize> Freeze for HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> RefUnwindSafe for HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> Send for HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> Sync for HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> Unpin for HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> UnsafeUnpin for HttpHeaders<'buf, HL>
impl<'buf, const HL: usize> UnwindSafe for HttpHeaders<'buf, HL>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more