pub struct HttpResponse {
pub status_code: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
HTTP response type for canister HTTP gateway
Fields§
§status_code: u16§headers: Vec<(String, String)>§body: Vec<u8>Trait Implementations§
Source§impl CandidType for HttpResponse
impl CandidType for HttpResponse
Auto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnwindSafe for HttpResponse
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