lighttp 0.3.0

Lightweight asynchronous HTTP/WS server


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

lighttp <img align="right" alt="Logo" width="100" src="https://i.imgur.com/kWWtW6I.png">

DUB Package Build Status

Lighttp is a lightweight asynchronous HTTP and WebSocket server library for the D programming language with simple API.

import lighttp;

void main(string[] args) {

	Server server = new Server();
	server.host("0.0.0.0");
	server.host("::");
	server.router.add(new Router());
	server.router.add("GET", "welcome", new Resource("text/html", read("welcome.html")));
	server.run();

}

class Router {

	@Get("") getIndex(Response response) {
		response.body = "Welcome to lighttp!";
	}

}
Authors:
  • Kripth
Dependencies:
kiss, xbuffer
Versions:
0.3.0 2018-Aug-05
0.2.1 2018-Jul-30
0.2.0 2018-Jun-29
0.1.4 2018-Jun-27
0.1.3 2018-May-27
Show all 9 versions
Download Stats:
  • 0 downloads today

  • 7 downloads this week

  • 46 downloads this month

  • 486 downloads total

Score:
1.3
Short URL:
lighttp.dub.pm