pub enum RawTargetAuthority<'a> {
None,
Absolute {
scheme: &'a [u8],
authority: &'a [u8],
path_and_query: &'a [u8],
},
AmbiguousAuthority,
}Expand description
Raw request-target authority boundaries.
Used for H1 absolute-form and malformed H2 :path; authority bytes remain opaque.
Variants§
None
The target does not carry an authority in absolute-form.
Absolute
The target carries an absolute-form authority and the following path/query bytes.
Fields
The raw authority bytes, excluding the leading //.
AmbiguousAuthority
Parser normalization could produce a different authority.
Examples: http:/\host and http://host\other/
Implementations§
Source§impl<'a> RawTargetAuthority<'a>
impl<'a> RawTargetAuthority<'a>
Return the absolute-form authority, if this classification carries one.
Trait Implementations§
Source§impl<'a> Debug for RawTargetAuthority<'a>
impl<'a> Debug for RawTargetAuthority<'a>
impl<'a> Eq for RawTargetAuthority<'a>
Source§impl<'a> PartialEq for RawTargetAuthority<'a>
impl<'a> PartialEq for RawTargetAuthority<'a>
impl<'a> StructuralPartialEq for RawTargetAuthority<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawTargetAuthority<'a>
impl<'a> RefUnwindSafe for RawTargetAuthority<'a>
impl<'a> Send for RawTargetAuthority<'a>
impl<'a> Sync for RawTargetAuthority<'a>
impl<'a> Unpin for RawTargetAuthority<'a>
impl<'a> UnsafeUnpin for RawTargetAuthority<'a>
impl<'a> UnwindSafe for RawTargetAuthority<'a>
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