#web-server #thread-pool #worker-thread #port #mini #asynchronous #http

bin+lib mini-web-server

A mini HTTP web server that uses a thread pool to respond asynchronously. Not intended for general use.

3 releases

0.1.2 Mar 5, 2023
0.1.1 Mar 5, 2023
0.1.0 Mar 5, 2023

#912 in HTTP server

MIT/Apache

10KB
162 lines

Mini Web Server

A mini HTTP web server that uses a thread pool to respond asynchronously.

Supports 2 commandline arguments - threads(no of threads) and port(port number). Default threads is 4 and default port is 7878.

For example to run the server with 10 worker threads listening at port 8787, run the following command -
./mini-web-server 10 8787

License

mini-web-server is currently licensed under the terms of both the MIT license and the Apache License (Version 2.0).

Thanks,
Kiran S
https://www.kirans.in


lib.rs:

mini-web-server

mini-web-server is a simple HTTP web server that uses a thread pool to respond asynchronously.
Supports 2 commandline arguments - threads(no of threads) and port(port number). Default threads is 4 and default port is 7878.

For example to run the server with 10 worker threads listening at port 8787, run the following command - ./mini-web-server 10 8787

No runtime deps