shelf_io library


A Server backed by a dart:io HttpServer.


handleRequest(HttpRequest request, Handler handler) Future
Uses handler to handle request. [...]
serve(Handler handler, dynamic address, int port, {SecurityContext securityContext, int backlog, bool shared: false}) Future<HttpServer>
Starts an HttpServer that listens on the specified address and port and sends requests to handler. [...]
serveRequests(Stream<HttpRequest> requests, Handler handler) → void
Serve a Stream of HttpRequests. [...]