Uses old Rust 2015
|0.1.3||Nov 2, 2020|
|0.1.2||Sep 29, 2020|
|0.1.1||Sep 19, 2020|
|0.1.0||Sep 18, 2020|
#310 in Web programming
a crate for building a simple blocking HTTP server
NOTE: this crate has not been evaluated for security concerns. therefore, we recommend that you take caution before using it in a production application.
to get this crate running locally:
- fork and clone this repository
to use this crate in your project, add the following line to your
simple-test-bbarekas = "0.1.0"
to see this crate in action, check out the examples.
to test this crate locally, run:
this crate has documentation. to build and open the docs locally:
cargo doc --open
there are several examples provided with this crate:
to run an example:
cargo run --example <name of example>
this crate uses the log crate for logging. in the example, we use the env-logger crate to display the logs. by default, env-logger only prints out error-level logs. to enable info-level logging as well, you'll need to do one of the following depending on your system:
on Linux/OS X:
RUST_LOG="simple_test_bbarekas=info" cargo run --example server
on Windows PowerShell:
$env:RUST_LOG="simple_test_bbarekas=info"; cargo run --example server
simple-test-bbarekas is licensed under both the Apache2 and MIT licenses.