pub struct Request<'a> {
pub method: &'a str,
pub path: &'a str,
pub query: Option<&'a str>,
pub content_type: Option<&'a str>,
pub git_protocol: Option<&'a str>,
pub body: &'a [u8],
}Fields§
§method: &'a str§path: &'a strRepository-relative URL path. Escape URL-reserved bytes with %HH.
query: Option<&'a str>§content_type: Option<&'a str>Request Content-Type; upload-pack requires its Git request media type.
git_protocol: Option<&'a str>Git-Protocol header, for example version=2. Absent selects v0.
body: &'a [u8]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'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