handy-httpd 8.4.3
Extremely lightweight HTTP server for D.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
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 HttpRequestContext ctx) {
ctx.response.writeBodyString("Hello world!");
}).start();
}
- Registered by Andrew Lalis
- 8.4.3 released 20 days ago
- andrewlalis/handy-httpd
- MIT
- Copyright © 2022, Andrew Lalis
- Authors:
- Dependencies:
- slf4d, streams, httparsed, path-matcher
- Versions:
-
8.4.3 2024-Dec-10 8.4.2 2024-Sep-27 8.4.1 2024-Aug-02 8.4.0 2024-Apr-16 8.3.2 2024-Feb-16 - Download Stats:
-
-
0 downloads today
-
1 downloads this week
-
191 downloads this month
-
19825 downloads total
-
- Score:
- 4.2
- Short URL:
- handy-httpd.dub.pm