Directive extracting the remote address of the client from the X-Forwarded-For
, Remote-Address
or X-Real-IP
headers (in that order).
Directive extracting the remote address of the client from the X-Forwarded-For
, Remote-Address
or X-Real-IP
headers (in that order).
Directive extracting the raw IP of the client from either the X-Forwarded-For
, Remote-Address
or X-Real-IP
headers (in that order).
Directive extracting the raw IP of the client from either the X-Forwarded-For
, Remote-Address
or X-Real-IP
headers (in that order).
Proxies a single request to a destination URI.
Proxies a single request to a destination URI.
the target URI
a route that handles requests by proxying them to the given URI.
Proxies a single request to a destination base URI.
Proxies a single request to a destination base URI. The target URI is created by concatenating the base URI with the unmatched path.
the target base URI
a route that handles requests by proxying them to the given URI.
Adds proxy to akka-http services to proxy requests to other hosts.
If the target server is known in advance, a
Proxy
object can be created. This internally materializes a flow that is continuously active and ready to route incoming requests.For one-off requests or requests to previously unknown hosts, this trait defines two routes: -
proxySingleTo
takes the original request and proxies it to the proxy URI; -proxySingleToUnmatchedPath
copies only the unmatched path from the original URI, and adds it to the path of the proxy URI.