Skip to main content

Crate baijimu_cmodel_http

Crate baijimu_cmodel_http 

Source

Structs§

PreservedErrorResponse
PublicErrorDefinition
An API owner’s reviewed public contract, never constructed from upstream text.
PublicErrorPolicy
Exact-code mappings owned by one API adapter. Unknown errors always use the mandatory default. No messages, nested causes, topology or arbitrary extensions from the downstream response are copied into the public response.
RequestContext
RequestContextLayer
RequestContextService
ServiceIdentityLayer
Scope the configured identity to each request; install once around CModel routes.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Enums§

CModelHttpError

Constants§

CMODEL_CONTENT_TYPE
REQUEST_ID_HEADER
TRACE_ID_HEADER

Functions§

current_request_context
current_service_identity
The identity is supplied at server composition, never taken from a request header.
decode_optional_data
decode_required_data
decode_response
Decode and validate a complete CModel response without interpreting a business failure as transport failure.
scope_request_context
Run a framework adapter’s request future with the shared CModel context. Context is scoped to this future and cannot leak between concurrent requests.
scope_service_identity
validate_http_status