serve method

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

Serve a Stream of HttpRequests, in this VirtualDirectory.

Implementation

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