RequestParser { String hostName(String hostName, String xForwardedHost) { if (Strings.isBlank(xForwardedHost)) return hostName; return xForwardedHost; }  void parse(RequestImpl request, HttpServerExchange exchange, ActionLog actionLog); final ClientIPParser clientIPParser; public boolean logSiteHeaders; }
@Test void hostName() { assertThat(parser.hostName("proxy", "original")).isEqualTo("original"); assertThat(parser.hostName("original", null)).isEqualTo("original"); }