Пример #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();
 }