pavex/server/mod.rs
1// The overall architecture of the server, as well as many implementation details,
2// follow closely the code in `actix-server`.
3//
4// Copyright (c) 2017-NOW Actix Team
5//
6// Permission is hereby granted, free of charge, to any
7// person obtaining a copy of this software and associated
8// documentation files (the "Software"), to deal in the
9// Software without restriction, including without
10// limitation the rights to use, copy, modify, merge,
11// publish, distribute, sublicense, and/or sell copies of
12// the Software, and to permit persons to whom the Software
13// is furnished to do so, subject to the following
14// conditions:
15//
16// The above copyright notice and this permission notice
17// shall be included in all copies or substantial portions
18// of the Software.
19//
20// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
21// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
22// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
24// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28// DEALINGS IN THE SOFTWARE.
29//! An HTTP [`Server`] and its supporting types, the toolkit you need to launch your Pavex application.
30//!
31//! Check out [`Server`]'s documentation for more information.
32pub use configuration::ServerConfiguration;
33pub use incoming::IncomingStream;
34pub use server::Server;
35pub use server_handle::ServerHandle;
36pub use shutdown_mode::ShutdownMode;
37
38mod configuration;
39mod incoming;
40#[allow(clippy::module_inception)]
41mod server;
42mod server_handle;
43mod shutdown_mode;
44mod worker;