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