Skip to main content

Crate soaprs_http

Crate soaprs_http 

Source
Expand description

Transport-neutral HTTP metadata.

This crate intentionally contains no handler, extractor, body, router, or middleware implementation. Framework adapters translate this metadata to their native APIs.

Structs§

EndpointMetadata
Portable endpoint metadata consumed by framework adapters and documentation.
Method
The Request Method (VERB)
RateLimitPolicy
Declarative per-key rate limit translated by an HTTP adapter.
RoutePath
A validated route path using {parameter} placeholders.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Enums§

AuthorizationPolicy
Declarative authorization requirement for an endpoint.

Functions§

default_error_status
Returns the default HTTP status for a stable soaprs error category.