handy-httpd 7.10.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:
7.13.0 2023-Nov-02
7.12.0 2023-Oct-18
7.11.1 2023-Oct-05
7.11.0 2023-Oct-04
7.10.5 2023-Oct-03
Show all 56 versions
Download Stats:
  • 0 downloads today

  • 59 downloads this week

  • 327 downloads this month

  • 17943 downloads total

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