Files
NLnetLabs-krill/src/daemon/http/dispatch/mod.rs
T
Martin HoffmannandGitHub 35cd5d0bb2 Redesign the HTTP service. (#1264)
Initially, this PR was intended to more clearly separate code between Krill
“business logic” – now bundled in a KrillManager –, and the HTTP server code
that serves the API. The former now lives in the server module, the latter
in the daemon module together with all the code to spin up a Krill daemon
driving the HTTP server.

However, along the way it turned into a complete redesign of how the HTTP
server code works. Request handling has been split into three stages that
forces implementers to check for permissions (or actively choose to not
check), and read the body (or check that there isn’t one). Dispatching of
the request has been restructured which should make it easier to follow what
goes on where.

This PR increases the minimum Rust version to 1.81.
2025-04-14 11:17:08 +02:00

26 lines
496 B
Rust

//! Dispatching of HTTP requests.
pub use self::error::DispatchError;
pub use self::root::dispatch_request;
/// The authentication callback path used by the OpenID provider.
///
/// This must not start with a slash.
///
/// It must also resolve to be dispatched to `self::auth::callback`.
#[cfg(feature = "multi-user")]
pub const AUTH_CALLBACK_ENDPOINT: &str = "auth/callback";
mod api;
mod auth;
mod cas;
mod bulk;
mod error;
mod metrics;
mod pubd;
mod root;
mod stats;
mod ta;
mod testbed;