public interface UriMapper
| Modifier and Type | Method and Description |
|---|---|
URI |
mapFrom(io.muserver.MuRequest request)
Gets a URI to proxy to based on the given request.
|
static UriMapper |
toDomain(URI targetDomain)
Creates a mapper that directs all requests to a new target domain.
|
URI mapFrom(io.muserver.MuRequest request) throws Exception
request - The client request to potentially proxy.Exception - Unhandled exceptions will result in an HTTP 500 error being sent to the clientstatic UriMapper toDomain(URI targetDomain)
targetDomain - The target URI to send proxied requests to. Any path or query strings will be ignored.ReverseProxyBuilder.withUriMapper(UriMapper)Copyright © 2019. All rights reserved.