handy-httpd

所属分类:collect
开发工具:D
文件大小:0KB
下载次数:0
上传日期:2023-07-11 17:20:57
上 传 者sh-1993
说明:  用于D的极其轻量级HTTP服务器。,
(Extremely lightweight HTTP server for D.,)

文件列表:
CONTRIBUTING.md (651, 2023-12-08)
LICENSE (1069, 2023-12-08)
SECURITY.md (327, 2023-12-08)
design/ (0, 2023-12-08)
design/icon-sm.svg (4526, 2023-12-08)
design/icon-sm_64.png (3180, 2023-12-08)
design/icon.svg (4842876, 2023-12-08)
design/icon_512.png (102590, 2023-12-08)
design/icon_64.png (5238, 2023-12-08)
docs/ (0, 2023-12-08)
docs/.npmignore (118, 2023-12-08)
docs/build-ddoc.d (1236, 2023-12-08)
docs/package-lock.json (1075108, 2023-12-08)
docs/package.json (500, 2023-12-08)
docs/skeleton.html (1032, 2023-12-08)
docs/src/ (0, 2023-12-08)
docs/src/.vuepress/ (0, 2023-12-08)
docs/src/.vuepress/config.js (2608, 2023-12-08)
docs/src/.vuepress/enhanceApp.js (378, 2023-12-08)
docs/src/.vuepress/public/ (0, 2023-12-08)
docs/src/.vuepress/public/favicon.ico (15086, 2023-12-08)
docs/src/.vuepress/public/images/ (0, 2023-12-08)
docs/src/.vuepress/public/images/icon-sm_64.png (3180, 2023-12-08)
docs/src/.vuepress/public/images/icon_512.png (102590, 2023-12-08)
docs/src/.vuepress/styles/ (0, 2023-12-08)
docs/src/.vuepress/styles/index.styl (137, 2023-12-08)
docs/src/.vuepress/styles/palette.styl (189, 2023-12-08)
docs/src/ddoc-link/ (0, 2023-12-08)
docs/src/ddoc-link/clientRootMixin.js (1126, 2023-12-08)
... ...

# handy-httpd An extremely lightweight HTTP server for the [D programming language](https://dlang.org/). ## Features - HTTP/1.1 - [Web Sockets](https://andrewlalis.github.io/handy-httpd/guide/handlers/websocket-handler.html) - Worker pool for request handling - [Simple configuration](https://andrewlalis.github.io/handy-httpd/guide/configuration.html) - High performance - Beginner friendly - Extensible with custom handlers, exception handlers, and filters - [Well-documented](https://andrewlalis.github.io/handy-httpd/) - [Prioritises testability](https://andrewlalis.github.io/handy-httpd/guide/testing.html) - Ships with some handy pre-made request handlers: - Serve static files with the [FileResolvingHandler](https://andrewlalis.github.io/handy-httpd/guide/handlers/file-resolving-handler.html) - Apply filters before and after handling requests with the [FilteredHandler](https://andrewlalis.github.io/handy-httpd/guide/handlers/filtered-handler.html) - Handle complex URL paths, including path parameters and wildcards, with the [PathHandler](https://andrewlalis.github.io/handy-httpd/guide/handlers/path-handler.html) ## Important Links - [Documentation](https://andrewlalis.github.io/handy-httpd/) - [Examples](https://github.com/andrewlalis/handy-httpd/tree/main/examples) - [Dub Package Page](https://code.dlang.org/packages/handy-httpd) - [Bugs/Feature Requests](https://github.com/andrewlalis/handy-httpd/issues) - [User Feedback Form](https://docs.google.com/forms/d/e/1FAIpQLSdazfaKLghGk1XpefOyDdHFfSZLaHQlCaeI9KAsaIMR5iNX6A/viewform?usp=sf_link) ## Simple Example ```d import handy_httpd; void main() { new HttpServer((ref ctx) { if (ctx.request.url == "/hello") { ctx.response.writeBodyString("Hello world!"); } else { ctx.response.setStatus(HttpStatus.NOT_FOUND); } }).start(); } ```

近期下载者

相关文件


收藏者