ptWebServer

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 = "127.0.0.1"; * host.port = 8080; * host.hostname = "test"; * * cfg.hosts.add(host); * * ptWebServer server = new ptWebServer(config: cfg); * * server.Run(); * } * /

Note:

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

Libraries

ptwebserver