rust-web-server 17.45.0

An HTTP web framework, reverse proxy, and server for Rust supporting HTTP/1.1, HTTP/2, and HTTP/3. Config-driven proxy mode (rws.config.toml with [[route]] / [[upstream]]) or library crate. No third-party HTTP dependencies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Read Me](https://github.com/bohdaq/rust-web-server/blob/main/README.md) > [Documentation](https://github.com/bohdaq/rust-web-server/tree/main/src/README.md)  > Server 

# Server 

Server module is designed to set up TcpListener, accept incoming connection, parse the request and pass the request to the user-defined Application.

User Application is responsible for processing the request. By processing request, it means generating corresponding response.


### Usage
First, you need to start a new server instance via calling [Server::setup](https://github.com/bohdaq/rust-web-server/blob/main/src/server/example/mod.rs#L8) method. Then you need to make an instance of your [Application](https://github.com/bohdaq/rust-web-server/blob/main/src/server/example/mod.rs#L15) and pass it to the [Server::run](https://github.com/bohdaq/rust-web-server/blob/main/src/server/example/mod.rs#L19) method.

Previous topic | Current Topic | Next Topic
--- |---------------| ---
[Response]https://github.com/bohdaq/rust-web-server/tree/main/src/response | Server          | [Application]https://github.com/bohdaq/rust-web-server/tree/main/src/application