6 references to GetProtocol
System.Web (6)
HttpRequest.cs (5)
1893string u = _wr.GetProtocol() + "://" + serverAndPort + Path + q; 1905return _wr.GetProtocol() + "://" + serverName + Path + q; 1908return _wr.GetProtocol() + "://" + serverName + ":" + _wr.GetLocalPortAsString() + Path + q; 1945url = UriUtil.BuildUri(_wr.GetProtocol(), Uri.UnescapeDataString(serverAndPort), null /* port */, pathAccessor(), q); 1957url = UriUtil.BuildUri(_wr.GetProtocol(), Uri.UnescapeDataString(serverName), _wr.GetLocalPortAsString(), pathAccessor(), q);
WebSockets\WebSocketUtil.cs (1)
38bool urisCreatedSuccessfully = Uri.TryCreate(workerRequest.GetProtocol() + "://" + hostHeader.Trim(), UriKind.Absolute, out hostHeaderUri) // RFC 2616 (Sec. 14.23): "Host" header doesn't contain the scheme, so we need to prepend