pub struct GitRequest {
pub method: String,
pub path: String,
pub query: String,
pub headers: Vec<(String, String)>,
pub body: Bytes,
pub host_url: Option<String>,
}Expand description
Opaque HTTP request shape consumed by the service.
The crate stays intentionally binder-agnostic — callers (axum,
actix-web, hyper raw, …) translate their native request type into
this struct before calling handle.
Fields§
§method: Stringe.g. "GET", "POST", "OPTIONS".
path: StringThe URL path ("/alice/repo/info/refs"), already
percent-decoded.
query: StringThe raw query string without the leading ?.
headers: Vec<(String, String)>All request headers as (name, value) tuples. Name is
compared case-insensitively by the service.
body: BytesRequest body (empty for GETs).
host_url: Option<String>Scheme + host ("https://pod.example.com") — used only to
reconstruct the URL that NIP-98 verification checks. If None,
we fall back to http://localhost.
Implementations§
Trait Implementations§
Source§impl Clone for GitRequest
impl Clone for GitRequest
Source§fn clone(&self) -> GitRequest
fn clone(&self) -> GitRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for GitRequest
impl RefUnwindSafe for GitRequest
impl Send for GitRequest
impl Sync for GitRequest
impl Unpin for GitRequest
impl UnsafeUnpin for GitRequest
impl UnwindSafe for GitRequest
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