示例#1
0
 public String webSocketURL(Http.Request request, boolean secure) {
   return "ws" + (secure ? "s" : "") + "://" + request.host() + this.url();
 }
示例#2
0
 public String absoluteURL(Http.Request request, boolean secure) {
   return "http" + (secure ? "s" : "") + "://" + request.host() + this.url();
 }