vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function handleHTTPConnection

Treats an existing connection as an HTTP connection and processes incoming requests.

void handleHTTPConnection (
  TCPConnection connection,
  HTTPServerContext context
) @safe;

After all requests have been processed, the connection will be closed and the function returns to the caller.

Parameters

NameDescription
connection The stream to treat as an incoming HTTP client connection.
context Information about the incoming listener and available virtual hosts
Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.