ptWebServer is a configuration web server that supports multiple hosts and addresses. It can be as simple as a simple web server with no extras to a very custom server response.

Example usage:

import 'package:ptwebserver/ptwebserver.dart';

void main() { ptConfig cfg = new ptConfig(); cfg.servername = "ptWebServer";

ptHost host = new ptHost(); host.address = ""; host.port = 8080; host.hostname = "test";


ptWebServer server = new ptWebServer(config: cfg);

server.Run(); }

Note: You are responsible for closing the connection when the request callback is not null