reverseProxy

fun reverseProxy(vararg hostToHandler: Pair<String, HttpHandler>, matcher: ReverseProxyHostMatcher = Exact): HttpHandler(source)

Simple Reverse Proxy which will split and direct traffic to the appropriate HttpHandler based on the content of the Host header.

Optionally takes a ReverseProxyHostMatcher to determine how the host header is matched: defaults to an exact match.