Crate mas_http

Source
Expand description

tower layers and services to help building HTTP client and servers

Modules§

body_to_bytes_response
bytes_to_body_request
catch_http_codes
form_urlencoded_request
json_request
json_response

Structs§

BodyToBytesResponse
BodyToBytesResponseLayer
BoxCloneSyncService
A Clone + Send + Sync boxed Service.
BytesToBodyRequest
BytesToBodyRequestLayer
CatchHttpCodes
A layer that catches responses with the HTTP status codes lying within bounds and then maps the requests into a custom error type using mapper.
CatchHttpCodesLayer
FormUrlencodedRequest
FormUrlencodedRequestLayer
JsonRequest
JsonRequestLayer
JsonResponse
JsonResponseLayer

Traits§

CorsLayerExt
HttpServiceExt

Functions§

set_propagator
Notify the CORS layer what opentelemetry propagators are being used. This helps whitelisting headers in CORS requests.

Type Aliases§

EmptyBody
HttpService
Type for the underlying HTTP service.