pub struct HttpResponse {
pub status: u16,
pub content_type: String,
pub body: Vec<u8>,
pub www_authenticate: Option<String>,
pub extra_headers: Vec<(String, String)>,
}Fields§
§status: u16§content_type: String§body: Vec<u8>§www_authenticate: Option<String>Set on 401 challenges (Basic realm="arks").
extra_headers: Vec<(String, String)>Extra response headers (e.g. WebDAV Lock-Token).
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Auto Trait Implementations§
impl Forget for HttpResponse
impl Freeze for HttpResponse
impl Move for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponsewhere
RawVecInner: Send,
impl Sync for HttpResponsewhere
RawVecInner: Sync,
impl Unpin for HttpResponse
impl UnsafeUnpin for HttpResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for HttpResponsewhere
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