pub struct HeaderParser;Expand description
Utility for parsing Braid protocol headers.
Implementations§
Source§impl HeaderParser
impl HeaderParser
pub fn parse_version(value: &str) -> Result<Vec<Version>, BraidError>
pub fn parse_content_range(value: &str) -> Result<(String, String), BraidError>
pub fn format_version(versions: &[Version]) -> String
pub fn format_content_range(unit: &str, range: &str) -> String
Auto Trait Implementations§
impl Freeze for HeaderParser
impl RefUnwindSafe for HeaderParser
impl Send for HeaderParser
impl Sync for HeaderParser
impl Unpin for HeaderParser
impl UnwindSafe for HeaderParser
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