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§
- Body
ToBytes Response - Body
ToBytes Response Layer - BoxClone
Sync Service - A
Clone
+Send
+Sync
boxedService
. - Bytes
ToBody Request - Bytes
ToBody Request Layer - Catch
Http Codes - A layer that catches responses with the HTTP status codes lying within
bounds
and then maps the requests into a custom error type usingmapper
. - Catch
Http Codes Layer - Form
Urlencoded Request - Form
Urlencoded Request Layer - Json
Request - Json
Request Layer - Json
Response - Json
Response Layer
Traits§
Functions§
- set_
propagator - Notify the CORS layer what opentelemetry propagators are being used. This helps whitelisting headers in CORS requests.
Type Aliases§
- Empty
Body - Http
Service - Type for the underlying HTTP service.