public final class ClientAddressSource extends Object
Forwarded and X-Forwarded-For header| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static ClientAddressSource |
ofHeader(CharSequence header)
Returns a
ClientAddressSource which indicates the value of the specified header
in a request will be used to determine a client address. |
static ClientAddressSource |
ofProxyProtocol()
Returns the
ClientAddressSource which indicates the source address specified in
a PROXY protocol message
will be used to determine a client address. |
String |
toString() |
public static ClientAddressSource ofHeader(CharSequence header)
ClientAddressSource which indicates the value of the specified header
in a request will be used to determine a client address.public static ClientAddressSource ofProxyProtocol()
ClientAddressSource which indicates the source address specified in
a PROXY protocol message
will be used to determine a client address.Copyright © 2020 LeanCloud. All rights reserved.