vibe.d beta banner
get vibe.d
0.10.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.

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

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

Sönke Ludwig

Copyright

© 2012 Sönke Ludwig

License

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