vibe.d beta banner
get vibe.d
0.8.1

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

Function reverseProxyRequest

Returns a HTTP request handler that forwards any request to the specified host/port.

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) reverseProxyRequest (
  HTTPReverseProxySettings settings
) @safe;

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) reverseProxyRequest (
  string destination_host,
  ushort destination_port
) @safe;

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) reverseProxyRequest (
  URL destination
) @safe;
Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

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