pub struct HttpRequest {Show 13 fields
pub method: String,
pub path: String,
pub query: String,
pub body: Vec<u8>,
pub git_protocol: Option<String>,
pub authorization: Option<String>,
pub destination: Option<String>,
pub lock_token: Option<String>,
pub host: Option<String>,
pub cookie: Option<String>,
pub origin: Option<String>,
pub forwarded_proto: Option<String>,
pub sec_fetch_site: Option<String>,
}Fields§
§method: String§path: String§query: String§body: Vec<u8>§git_protocol: Option<String>Raw Git-Protocol header value (e.g. version=2), if present.
Raw Authorization header value (e.g. Basic …), if present.
destination: Option<String>WebDAV Destination header (MOVE).
lock_token: Option<String>WebDAV lock token from Lock-Token or If header.
host: Option<String>Raw Host header (for LFS batch href construction).
Raw Cookie header (for self-hosted Web UI session authentication).
origin: Option<String>Raw Origin header (for cross-site POST CSRF protection).
forwarded_proto: Option<String>Effective scheme (https when served over TLS or X-Forwarded-Proto: https).
sec_fetch_site: Option<String>Raw Sec-Fetch-Site header (for cross-site mutation CSRF defense when Origin is absent).
Implementations§
Trait Implementations§
Source§impl Clone for HttpRequest
impl Clone for HttpRequest
Auto Trait Implementations§
impl Forget for HttpRequest
impl Freeze for HttpRequest
impl Move for HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequestwhere
RawVecInner: Send,
impl Sync for HttpRequestwhere
RawVecInner: Sync,
impl Unpin for HttpRequest
impl UnsafeUnpin for HttpRequest
impl UnwindSafe for HttpRequestwhere
RawVecInner: UnwindSafe,
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