learn-http
is a basic, experimental HTTP server.
- Run a server.
% cargo run --bin http-server
- Access with a simple client.
% cargo run --bin http-client
HTTP/1.0 contains HTTP/0.9 features, and learn-http
supports them.
-
Configuration
- Content root
- Host's IP address
- Listen port
- Extension status code
- Allow
- Content-Encoding
- Expires
- Location
-
Header
- Allow https://tools.ietf.org/html/rfc1945#section-10.1
- Authorization https://tools.ietf.org/html/rfc1945#section-10.2
- Content-Encoding https://tools.ietf.org/html/rfc1945#section-10.3
- Content-Length
- Content-Type
- Date
- Expires https://tools.ietf.org/html/rfc1945#section-10.7
- From
- If-Modified-Since
- Last-Modified
- Location
- Pragma
- Referer
- Server
- User-Agent
- WWW-authenticate https://tools.ietf.org/html/rfc1945#section-10.16
-
Additinal Header
- Accept
- Accept-Charset
- Accept-Encoding
- Accept-Language
- Link
- MIME-Version
- Retry-After
- Title
- URI
-
Access Authentication https://tools.ietf.org/html/rfc1945#section-11
- Basic authentication
-
Method
-
Header
-
Access Authentication https://tools.ietf.org/html/rfc2616#section-11
- Digest authentication https://tools.ietf.org/html/rfc2616#ref-43