Expand description
The REST request pipeline of Postrust: an HTTP request in, the response the PostgREST-dialect API gives it out.
No web framework is involved. The server (postrust-server) wraps this in
axum, and the Lambda adapter reaches it through the server. It is meant to
be shared with a host that cannot run axum – a Cloudflare Worker – too,
once the database interface is driver-neutral; it does not build for wasm32
yet, since it still talks to PostgreSQL through sqlx. See issue #50.
let response = postrust_engine::handle(&state, request).await;Traits§
- State
- Everything the pipeline needs from its host.
Functions§
- allow
- What the resource this request names allows, or why it cannot say.
- error_
response - Build an error response.
- handle
- Answer a request to the REST API.