lighttp 0.3.0

Lightweight asynchronous HTTP/WS server


To use this package, run the following command in your project's root directory:

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:
xbuffer, kiss
Versions:
0.5.3 2019-Oct-10
0.5.2 2019-Sep-14
0.5.1 2019-Sep-08
0.5.0 2019-Jan-04
0.4.0 2019-Jan-01
Show all 14 versions
Download Stats:
  • 0 downloads today

  • 5 downloads this week

  • 9 downloads this month

  • 554 downloads total

Score:
1.9
Short URL:
lighttp.dub.pm