pub struct GitResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Bytes,
}Expand description
CGI response to return to the HTTP layer.
Fields§
§status: u16HTTP status (derived from the CGI Status: header, or 200 by
default).
headers: Vec<(String, String)>All response headers emitted by the CGI plus CORS headers.
body: BytesBody bytes — already includes the CGI body payload.
Implementations§
Trait Implementations§
Source§impl Clone for GitResponse
impl Clone for GitResponse
Source§fn clone(&self) -> GitResponse
fn clone(&self) -> GitResponse
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 GitResponse
impl RefUnwindSafe for GitResponse
impl Send for GitResponse
impl Sync for GitResponse
impl Unpin for GitResponse
impl UnsafeUnpin for GitResponse
impl UnwindSafe for GitResponse
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