Struct kern::http::server::ResponseData
source · pub struct ResponseData<'a> {
pub status: &'a str,
pub headers: HashMap<&'a str, &'a str>,
}
Expand description
Additional response data
Fields§
§status: &'a str
§headers: HashMap<&'a str, &'a str>
Implementations§
source§impl<'a> ResponseData<'a>
impl<'a> ResponseData<'a>
pub fn continue100() -> Self
pub fn switching_protocols() -> Self
pub fn early_hints() -> Self
pub fn ok() -> Self
pub fn created() -> Self
pub fn accepted() -> Self
pub fn no_content() -> Self
pub fn reset_content() -> Self
pub fn partial_content() -> Self
pub fn multi_status() -> Self
pub fn already_reported() -> Self
pub fn im_used() -> Self
pub fn multiple_choices() -> Self
pub fn moved_permanently() -> Self
pub fn found() -> Self
pub fn see_other() -> Self
pub fn not_modified() -> Self
pub fn temporary_redirect() -> Self
pub fn permanent_redirect() -> Self
pub fn bad_request() -> Self
pub fn payment_required() -> Self
pub fn forbidden() -> Self
pub fn not_found() -> Self
pub fn method_not_allowed() -> Self
pub fn not_acceptable() -> Self
pub fn proxy_authentication_required() -> Self
pub fn request_timeout() -> Self
pub fn conflict() -> Self
pub fn gone() -> Self
pub fn length_required() -> Self
pub fn precondition_failed() -> Self
pub fn content_too_large() -> Self
pub fn uri_too_long() -> Self
pub fn unsupported_media_type() -> Self
pub fn range_not_satisfiable() -> Self
pub fn expectation_failed() -> Self
pub fn im_a_teapot() -> Self
pub fn misdirected_request() -> Self
pub fn unprocessable_content() -> Self
pub fn locked() -> Self
pub fn failed_dependency() -> Self
pub fn too_early() -> Self
pub fn upgrade_required() -> Self
pub fn precondition_required() -> Self
pub fn too_many_requests() -> Self
pub fn request_header_fields_too_large() -> Self
pub fn internal_server_error() -> Self
pub fn not_implemented() -> Self
pub fn bad_gateway() -> Self
pub fn gateway_timeout() -> Self
pub fn http_version_not_supported() -> Self
pub fn variant_also_negotiates() -> Self
pub fn insufficient_storage() -> Self
pub fn loop_detected() -> Self
pub fn not_extended() -> Self
pub fn network_authentication_required() -> Self
Trait Implementations§
source§impl<'a> Clone for ResponseData<'a>
impl<'a> Clone for ResponseData<'a>
source§fn clone(&self) -> ResponseData<'a>
fn clone(&self) -> ResponseData<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ResponseData<'a>
impl<'a> Debug for ResponseData<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ResponseData<'a>
impl<'a> Send for ResponseData<'a>
impl<'a> Sync for ResponseData<'a>
impl<'a> Unpin for ResponseData<'a>
impl<'a> UnwindSafe for ResponseData<'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