pub struct HttpResponse {
pub content: String,
pub content_type: String,
pub status: u16,
pub headers: HashMap<String, String>,
}
Fields§
§content: String
§content_type: String
§status: u16
§headers: HashMap<String, String>
Implementations§
Source§impl HttpResponse
impl HttpResponse
pub fn new(content: String) -> HttpResponse
pub fn new2(content: &str) -> 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