A B C D H I M O P R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addProxyCompleteListener(ProxyCompleteListener) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Registers a proxy completion listener.
- artifactVersion() - Static method in class io.muserver.murp.Murp
-
Returns the current version of Murp, or 0.x if unknown
B
- build() - Method in class io.muserver.murp.ReverseProxyBuilder
-
Creates a new ReverseProxy which is a MuHandler.
C
- createHttpClientBuilder(boolean) - Static method in class io.muserver.murp.ReverseProxyBuilder
-
Creates a new HTTP Client builder that is suitable for use in mu reverse proxy.
D
- discardClientForwardedHeaders(boolean) - Method in class io.muserver.murp.ReverseProxyBuilder
-
If true, then any
Forwarded
orX-Forwarded-*
headers that are sent from the client to this reverse proxy will be dropped (defaults to false).
H
- handle(MuRequest, MuResponse) - Method in class io.muserver.murp.ReverseProxy
- HOP_BY_HOP_HEADERS - Static variable in class io.muserver.murp.ReverseProxy
-
An unmodifiable set of the Hop By Hop headers.
I
- intercept(MuRequest, HttpRequest.Builder) - Method in interface io.muserver.murp.RequestInterceptor
-
This function is called after Murp prepared the request object to the target server, but before it is sent, allowing you to modify request headers.
- intercept(MuRequest, HttpRequest, HttpResponse.ResponseInfo, MuResponse) - Method in interface io.muserver.murp.ResponseInterceptor
-
This function is called after the response from the target is received, and the response headers for the client are called.
- io.muserver.murp - package io.muserver.murp
-
A reverse proxy handler for Mu Server.
M
- mapFrom(MuRequest) - Method in interface io.muserver.murp.UriMapper
-
Gets a URI to proxy to based on the given request.
- Murp - Class in io.muserver.murp
-
Some utilities for the reverse proxy.
O
- onBeforeRequestBodyChunkSentToTarget(MuRequest, MuResponse, ByteBuffer) - Method in interface io.muserver.murp.ProxyListener
-
Called before a chunk of request body data is sent to the target.
- onComplete(MuRequest, MuResponse, URI, long) - Method in interface io.muserver.murp.ProxyCompleteListener
-
Called after the response has been sent to the client, whether successful or not
- onComplete(MuRequest, MuResponse, URI, long) - Method in class io.muserver.murp.Slf4jResponseLogger
-
Called after the response has been sent to the client, whether successful or not
- onErrorDetectedFromClient(MuRequest, MuResponse, HttpRequest, Throwable) - Method in interface io.muserver.murp.ProxyListener
-
Called when error detected from client side This API is experimental and might be changed in the future
- onErrorDetectedFromTarget(MuRequest, MuResponse, HttpRequest, Throwable) - Method in interface io.muserver.murp.ProxyListener
-
Called when error detected from target side This API is experimental and might be changed in the future
- onRequestBodyChunkSentToTarget(MuRequest, MuResponse, ByteBuffer) - Method in interface io.muserver.murp.ProxyListener
-
Called after a chunk of request body data is sent to the target.
- onRequestBodyFullSentToTarget(MuRequest, MuResponse, long) - Method in interface io.muserver.murp.ProxyListener
-
Called when the full request body has been sent to the target
- onResponseBodyChunkFullSentToClient(MuRequest, MuResponse, long) - Method in interface io.muserver.murp.ProxyListener
-
Called when a chunk of response body data is received from the target and fully sent to client
- onResponseBodyChunkReceivedFromTarget(MuRequest, MuResponse, ByteBuffer) - Method in interface io.muserver.murp.ProxyListener
-
Called when a chunk of response body data is received from the target This will be called many times if the body has been fragmented
- onResponseBodyChunkSentToClient(MuRequest, MuResponse, ByteBuffer) - Method in interface io.muserver.murp.ProxyListener
-
Called when a chunk of response body data is received from the target and sent to client This will be called many times if the body has been fragmented
P
- pathAndQuery(URI) - Static method in class io.muserver.murp.Murp
-
Given a gets the raw path and (if present) querystring portion of a URI.
- ProxyCompleteListener - Interface in io.muserver.murp
-
A listener for when proxied requests complete
- proxyHostHeader(boolean) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Specifies whether to send the original
Host
header to the target server. - ProxyListener - Interface in io.muserver.murp
-
A listener for observing the life cycle phases of a request, it might be useful for debug and metric
R
- RequestInterceptor - Interface in io.muserver.murp
-
A hook for intercepting requests before they are sent to the target server.
- ResponseInterceptor - Interface in io.muserver.murp
-
A hook for intercepting responses before they are sent back to the client.
- reverseProxy() - Static method in class io.muserver.murp.ReverseProxyBuilder
-
Creates and returns a new instance of a reverse proxy builder.
- ReverseProxy - Class in io.muserver.murp
-
The core implementation for ReverseProxy
- ReverseProxyBuilder - Class in io.muserver.murp
-
A builder for creating a reverse proxy, which is a
MuHandler
that can be added to a Mu Server.
S
- sendLegacyForwardedHeaders(boolean) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Murp always sends
Forwarded
headers, however by default does not send the non-standardX-Forwarded-*
headers. - setForwardedHeaders(MuRequest, HttpRequest.Builder, boolean, boolean) - Static method in class io.muserver.murp.ReverseProxy
-
Sets Forwarded and optionally X-Forwarded-* headers to the target request, based on the client request
- Slf4jResponseLogger - Class in io.muserver.murp
-
A listener that logs the results of proxying to slf4j which can be added with
ReverseProxyBuilder.addProxyCompleteListener(ProxyCompleteListener)
- Slf4jResponseLogger() - Constructor for class io.muserver.murp.Slf4jResponseLogger
-
Default constructor
T
- toDomain(URI) - Static method in interface io.muserver.murp.UriMapper
-
Creates a mapper that directs all requests to a new target domain.
U
- UriMapper - Interface in io.muserver.murp
-
A function that maps an incoming request to a target URI.
W
- withHttpClient(HttpClient) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Specifies the JDK HTTP client to use to make the request to the target server.
- withProxyListener(ProxyListener) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Adds a proxy listener to observe the life cycle of a request, it's useful for debug or metric
- withRequestInterceptor(RequestInterceptor) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Adds an interceptor to the point where a request to the target server has been prepared, but not sent.
- withResponseInterceptor(ResponseInterceptor) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Adds an interceptor to the point where a response to the client has been prepared, but not sent.
- withTotalTimeout(long) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Sets the total request timeout in millis for a proxied request.
- withTotalTimeout(long, TimeUnit) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Sets the total request timeout in millis for a proxied request.
- withUriMapper(UriMapper) - Method in class io.muserver.murp.ReverseProxyBuilder
-
Required value.
- withViaName(String) - Method in class io.muserver.murp.ReverseProxyBuilder
-
The name to add as the
Via
header, which defaults toprivate
.
All Classes All Packages