objectstore_server/web/mod.rs
1//! Module implementing the Objectstore API webserver.
2//!
3//! The main server application is implemented in the [`App`] struct, which sets up routing,
4//! middleware, and the HTTP server. It is a tower service that can be run using any compatible
5//! server framework.
6//!
7//! To listen to incoming connections, use the [`server()`] function, which opens a TCP listener and
8//! serves the application.
9//!
10//! # Testing
11//!
12//! For end-to-end tests of the server, see the `objectstore-test` crate, which provides utilities
13//! to start a test server and interact with it using the client SDK.
14
15mod app;
16mod metrics_body;
17mod middleware;
18mod request_counter;
19mod sentry_body;
20mod server;
21
22pub use app::App;
23pub use request_counter::RequestCounter;
24pub use server::server;