serve method

StreamSubscription<HttpRequest> serve (Stream<HttpRequest> requests)

Serve a Stream of HttpRequests, in this VirtualDirectory.

Implementation

StreamSubscription<HttpRequest> serve(Stream<HttpRequest> requests) =>
    requests.listen(serveRequest);