示例#1
0
 public static boolean isHttpsRequest(Request request) {
   return (request.getHeader(SSL_HEADER) != null
           && request.getHeader(SSL_HEADER).contains("https"))
       || isOverHttpsPort(request.host());
 }
示例#2
0
 @Override
 public String getRequestHeader(final String name) {
   return request.getHeader(name);
 }