RequestParser { String scheme(String requestScheme, String xForwardedProto) { logger.debug("[request] requestScheme={}", requestScheme); return xForwardedProto != null ? xForwardedProto : requestScheme; }  void parse(RequestImpl request, HttpServerExchange exchange, ActionLog actionLog); final ClientIPParser clientIPParser; public boolean logSiteHeaders; }
@Test void scheme() { assertThat(parser.scheme("http", "https")).isEqualTo("https"); assertThat(parser.scheme("http", null)).isEqualTo("http"); }