#web-server #string #http #serve #port #helper #stores

bin+lib testserver

Static HTTP webserver that stores resources as strings

4 releases

0.1.3 Jun 13, 2021
0.1.2 Jun 13, 2021
0.1.1 Jun 13, 2021
0.1.0 Jun 12, 2021

#39 in #stores

AGPL-3.0-or-later

18KB
185 lines

Testserver

A static HTTP server. Takes a specially-crafted &'static str and serves it on a random port on 127.74.137.226.

Examples

Take a look at src/bin/testserver-demo.rs for an example.


lib.rs:

Webserver helper for writing tests.

Dependencies

~4–9.5MB
~93K SLoC