Awesome
handy-httpd
An extremely lightweight HTTP server for the D programming language.
Features
- HTTP/1.1
- Web Sockets
- Simple configuration
- High performance with interchangeable request processors
- Beginner friendly
- Extensible with custom handlers, exception handlers, and filters
- Well-documented
- Prioritises testability
- Ships with some handy pre-made request handlers:
- Serve static files with the FileResolvingHandler
- Apply filters before and after handling requests with the FilteredHandler
- Handle complex URL paths, including path parameters and wildcards, with the PathHandler
Links
Simple Example
import handy_httpd;
void main() {
new HttpServer((ref ctx) {
ctx.response.writeBodyString("Hello world!");
}).start();
}