Package io.micronaut.http.server.util
Class ProxyHeaderParser
- java.lang.Object
-
- io.micronaut.http.server.util.ProxyHeaderParser
-
public class ProxyHeaderParser extends java.lang.ObjectResponsible for parsing and returning the information stored in the standard and de facto standard proxy headers.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description ProxyHeaderParser(io.micronaut.http.HttpRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBy()java.util.List<java.lang.String>getFor()java.lang.StringgetHost()java.lang.IntegergetPort()java.lang.StringgetScheme()
-
-
-
Method Detail
-
getFor
@NonNull public java.util.List<java.lang.String> getFor()
- Returns:
- The client addresses
-
getBy
public java.lang.String getBy()
- Returns:
- The proxy
-
getHost
public java.lang.String getHost()
- Returns:
- The host
-
getScheme
public java.lang.String getScheme()
- Returns:
- The scheme or protocol
-
getPort
public java.lang.Integer getPort()
- Returns:
- The port
-
-