Struct ic_canister_kit::http::CustomHttpResponse
source · pub struct CustomHttpResponse<'a> {
pub status_code: u16,
pub headers: HashMap<&'a str, Cow<'a, str>>,
pub body: Cow<'a, [u8]>,
pub streaming_strategy: Option<StreamingStrategy>,
}Fields§
§status_code: u16§headers: HashMap<&'a str, Cow<'a, str>>§body: Cow<'a, [u8]>§streaming_strategy: Option<StreamingStrategy>Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CustomHttpResponse<'a>
impl<'a> Send for CustomHttpResponse<'a>
impl<'a> Sync for CustomHttpResponse<'a>
impl<'a> Unpin for CustomHttpResponse<'a>
impl<'a> UnwindSafe for CustomHttpResponse<'a>
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