Package reactor.netty.http.server
Interface ConnectionInformation
- All Known Subinterfaces:
HttpServerInfos,HttpServerRequest,HttpServerResponse
public interface ConnectionInformation
Resolve information about the connection from which an http request is received.
- Since:
- 1.0.26
-
Method Summary
Modifier and TypeMethodDescriptionReturns the address of the host which received the request, possiblynullin case of Unix Domain Sockets.Returns the address of the client that initiated the request, possiblynullin case of Unix Domain Sockets.Returns the current protocol scheme.Returns the address of the host which received the request, possiblynullin case of Unix Domain Sockets.hostName()Returns the host name derived from theHost/X-Forwarded-Host/Forwardedheader associated with this request.inthostPort()Returns the host port derived from theHost/X-Forwarded-*/Forwardedheader associated with this request.Returns the address of the client that initiated the request, possiblynullin case of Unix Domain Sockets.scheme()Returns the current protocol scheme.
-
Method Details
-
hostAddress
Returns the address of the host which received the request, possiblynullin case of Unix Domain Sockets. The returned address is the merged information from all proxies.- Returns:
- the address merged from all proxies of the host which received the request
-
connectionHostAddress
Returns the address of the host which received the request, possiblynullin case of Unix Domain Sockets.- Returns:
- the address of the host which received the request
-
remoteAddress
Returns the address of the client that initiated the request, possiblynullin case of Unix Domain Sockets. The returned address is the merged information from all proxies.- Returns:
- the address merged from all proxies of the client that initiated the request
-
connectionRemoteAddress
Returns the address of the client that initiated the request, possiblynullin case of Unix Domain Sockets.- Returns:
- the address of the client that initiated the request
-
scheme
String scheme()Returns the current protocol scheme. The returned address is the merged information from all proxies.- Returns:
- the protocol scheme merged from all proxies
-
connectionScheme
String connectionScheme()Returns the current protocol scheme.- Returns:
- the protocol scheme
-
hostName
String hostName()Returns the host name derived from theHost/X-Forwarded-Host/Forwardedheader associated with this request.- Returns:
- the host name derived from the
Host/X-Forwarded-Host/Forwardedheader associated with this request. - Since:
- 1.0.29
-
hostPort
int hostPort()Returns the host port derived from theHost/X-Forwarded-*/Forwardedheader associated with this request.- Returns:
- the host port derived from the
Host/X-Forwarded-*/Forwardedheader associated with this request. - Since:
- 1.0.29
-