Skip to main content

Crate lenso_capability_http_endpoint

Crate lenso_capability_http_endpoint 

Source
Expand description

Generated bindings for backend-owned HTTP Endpoint providers.

Modules§

response
Typed response construction for authored HTTP Endpoint handlers.

Macros§

http_endpoint
Implements a statically routed HttpEndpoint from one route table.

Structs§

Bytes
Shared native bytes encoded as canonical padded Base64 on the wire.
DescribeRequest
DescribeResponse
DescribeResponseRoutesItem
EndpointClient
EndpointDescribe
EndpointEndpoint
EndpointHandle
EndpointRoute
One immutable HTTP route owned by an Endpoint provider.
HandleRequest
HandleRequestCredential
HandleRequestHeadersItem
HandleRequestPathParametersItem
HandleResponse
HandleResponseHeadersItem
Json
A JSON request body decoded into T.
MiddlewareOutcome
The result of one Endpoint-owned middleware step.
Path
Route path parameters decoded into T by field name.
Query
The URL query string decoded into T.
RequestId
The trusted request identifier assigned by Web Ingress.
UnknownDomainError
A forward-compatible Capability-defined error unknown to this binding version.

Enums§

DescribeError
EndpointDescribeInvocationError
EndpointHandleInvocationError
ExtractorRejection
A typed extractor rejection before the authored handler runs.
HandleError

Constants§

CAPABILITY_ID
CROSS_LANE_TRANSFER
DESCRIBE_OPERATION
DESCRIPTOR_VERSION
ENDPOINT_CAPABILITY_ID
ENDPOINT_DESCRIPTOR_VERSION
HANDLE_OPERATION
PORTABLE

Traits§

EndpointProvider
FromRequest
Extracts one typed handler argument from an inbound HTTP request.
HttpEndpoint
A statically routed HTTP Endpoint whose declarations and dispatch share one source.

Functions§

decode_describe_error
decode_describe_request
decode_describe_response
decode_handle_error
decode_handle_request
decode_handle_response
encode_describe_error
encode_describe_request
encode_describe_response
encode_handle_error
encode_handle_request
encode_handle_response

Type Aliases§

EndpointFuture
Boxed local handler result used by an authored HTTP Endpoint.
ExtractorFuture
Boxed local extraction result used by an authored Endpoint handler.

Attribute Macros§

endpoint
Generates one HTTP Endpoint provider from handler route attributes.