Module extract
Available on crate features
http and std only.Expand description
Extract utilities to develop endpoint services effortlessly.
HeaderMap implements FromOwnedRequestParts, allowing handlers to take ownership of all
request headers without cloning them. Owned-parts extractors are placed immediately before a
trailing FromRequestBody extractor.
Modules§
- authority
- Module in function of the
Authorityextractor. - body
- module in function of extractors for
Requestbodies - datastar
- 🚀 Datastar support extractor for rama.
- host
- Module in function of the
Hostextractor. - path
- Module in function of the
Pathextractor. - query
- Module in function of the
Queryextractor. - typed_
header - module in function of
TypedHeader
Structs§
- Authority
- Extractor that resolves the authority of the request.
- Body
- Extractor to get the response body.
- Bytes
- Extractor to get the response body, collected as
Bytes. - Csv
- Wrapper used to create Csv Http
Responses, as well as to extract Csv from HttpRequestbodies. - Form
- Wrapper used to create Form Http
Responses, as well as to extract Form from HttpRequestbodies. - Host
- Extractor that resolves the hostname of the request.
- Json
- Wrapper used to create Json Http
Responses, as well as to extract Json from HttpRequestbodies. - Multipart
- Extractor for
multipart/form-datarequest bodies. - Octet
Stream - Wrapper used to extract
application/octet-streampayloads from request bodies. - Path
- Extractor to get path parameters from the context in deserialized form.
- Query
- Extractor that deserializes query strings into some type.
- State
- Extractor for static State provided by the caller of
IntoEndpointServiceWithState - Text
- Extractor to get the response body, collected as
String. - Typed
Header - Extractor to get a TypedHeader from the request.
Traits§
- From
Owned Request Parts - Types that can be created by consuming the request parts.
- From
Parts State RefPair - Types that can be created from request parts.
- From
Request - Types that can be created from requests.
- From
Request Body - Types that own the request body while only borrowing the other request parts.
- Optional
From Parts State RefPair - Customize the behavior of
Option<Self>as aFromPartsStateRefPairextractor. - Optional
From Request - Customize the behavior of
Option<Self>as aFromRequestextractor. - Optional
From Request Body - Customize the behavior of
Option<Self>as aFromRequestBodyextractor.