Class ProxyHeaderParser

java.lang.Object
io.micronaut.http.server.util.ProxyHeaderParser

public class ProxyHeaderParser extends Object
Responsible for parsing and returning the information stored in the standard and de facto standard proxy headers.
Since:
1.2.0
Author:
James Kleeh
  • Constructor Details

    • ProxyHeaderParser

      public ProxyHeaderParser(HttpRequest request)
      Parameters:
      request - The request
  • Method Details

    • getFor

      @NonNull public @NonNull List<String> getFor()
      Returns:
      The client addresses
    • getBy

      public String getBy()
      Returns:
      The proxy
    • getHost

      public String getHost()
      Returns:
      The host
    • getScheme

      public String getScheme()
      Returns:
      The scheme or protocol
    • getPort

      public Integer getPort()
      Returns:
      The port