pub struct HttpResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
pub url: String,
}Expand description
A resposta: o status, os cabeçalhos (nomes em minúsculas), o corpo e o endereço final (depois dos redirecionamentos).
Fields§
§status: u16§headers: Vec<(String, String)>§body: Vec<u8>§url: StringImplementations§
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Source§impl Debug for HttpResponse
impl Debug for HttpResponse
Source§impl Default for HttpResponse
impl Default for HttpResponse
Source§impl PartialEq for HttpResponse
impl PartialEq for HttpResponse
impl StructuralPartialEq 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<(String, String)>: UnsafeUnpin,
PhantomData<u8>: 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