Trait mas_http::HttpServiceExt
source · pub trait HttpServiceExt<Body>: Sized {
// Provided methods
fn request_bytes_to_body(self) -> BytesToBodyRequest<Self> { ... }
fn response_body_to_bytes(self) -> BodyToBytesResponse<Self> { ... }
fn json_response<T>(self) -> JsonResponse<Self, T> { ... }
fn json_request<T>(self) -> JsonRequest<Self, T> { ... }
fn form_urlencoded_request<T>(self) -> FormUrlencodedRequest<Self, T> { ... }
fn catch_http_code<M>(
self,
status_code: StatusCode,
mapper: M
) -> CatchHttpCodes<Self, M>
where M: Clone { ... }
fn catch_http_codes<B, M>(
self,
bounds: B,
mapper: M
) -> CatchHttpCodes<Self, M>
where B: RangeBounds<StatusCode>,
M: Clone { ... }
}Provided Methods§
fn request_bytes_to_body(self) -> BytesToBodyRequest<Self>
fn response_body_to_bytes(self) -> BodyToBytesResponse<Self>
fn json_response<T>(self) -> JsonResponse<Self, T>
fn json_request<T>(self) -> JsonRequest<Self, T>
fn form_urlencoded_request<T>(self) -> FormUrlencodedRequest<Self, T>
fn catch_http_code<M>(
self,
status_code: StatusCode,
mapper: M
) -> CatchHttpCodes<Self, M>where
M: Clone,
fn catch_http_codes<B, M>(self, bounds: B, mapper: M) -> CatchHttpCodes<Self, M>
Object Safety§
This trait is not object safe.