handy-httpd 7.11.0

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

Simple Example

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();
}
Authors:
Dependencies:
slf4d, streams, httparsed
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
Show all 73 versions
Download Stats:
  • 5 downloads today

  • 15 downloads this week

  • 54 downloads this month

  • 19652 downloads total

Score:
3.3
Short URL:
handy-httpd.dub.pm