blazingly-http
Adapter-neutral HTTP dispatch for the Blazingly framework: a compiled router, typed request and response values, synchronous middleware hooks, and an in-memory test client over the executable operation graph.
This crate sits between blazingly-executor, which compiles the operation
graph, and the byte-level adapters (blazingly-native today). It defines
Request and Response, the borrowed HttpRequestView that adapters
implement over their receive buffers, the HttpMiddleware interception
points, HttpApp for serving paths, and TestApp for in-memory dispatch. It
is an ordinary library and is usable standalone: given an ExecutableApp, it
routes and dispatches requests entirely in memory with no socket, no async
runtime, and no facade — the example below is a complete program. The
blazingly facade re-exports these types and adds the macro layer that
derives operations from handler signatures; without it, operations are built
explicitly, as shown.
[]
= "0.1"
= "0.1"
= "0.1"
= "2"
use ;
use ;
use ;
futures-lite only blocks on the returned future; dispatch is a plain
Future, so any executor works.
Links
- API documentation
- Getting started — the framework picture
- Repository