Expand description
Make all of lexe_api_core available under [lexe_api].
NOTE: Any crates which can depend on lexe_api_core directly (without
lexe-api) should do so to avoid [lexe_api] dependencies.
Axum helpers which must live in lexe_api_core because its dependents do.
Functions§
- build_
json_ response - Constructs a JSON
http::Response<axum::body::Body>from the data and status code. If serialization fails for some reason (very unlikely), log and return aErrorResponsecontaining aCommonErrorKind::Serveralong with the associatedStatusCode. - default_
response_ builder - A builder for a
http::Responsewith Lexe’s defaults set.