44 references to Authority
dotnet-svcutil-lib (4)
CmdCredentialsProvider.cs (3)
143Console.WriteLine(string.Format(CultureInfo.InvariantCulture, SR.CertificateSelectionMessageFormat, serviceUri.Authority)); 211if (request != null && _serviceUri != null && _serviceUri.Authority == request.RequestUri.Authority)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
141return new SecurityNegotiationException(string.Format(SRServiceModel.TrustFailure, request.RequestUri.Authority), exception);
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestPathBaseTests.cs (1)
91"Host: " + _fixture.Client.BaseAddress.Authority,
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
798"Host: " + _fixture.Client.BaseAddress.Authority,
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestPathBaseTests.cs (1)
91"Host: " + _fixture.Client.BaseAddress.Authority,
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
798"Host: " + _fixture.Client.BaseAddress.Authority,
InMemory.FunctionalTests (3)
RequestTests.cs (1)
246var host = requestTarget.Authority;
TestTransport\InMemoryHttpClientSlim.cs (2)
50var authority = requestUri.Authority; 79await writer.WriteAsync($"Host: {requestUri.Authority}\r\n").ConfigureAwait(false);
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
235|| absoluteUri.Authority != request.Host.Value;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
370var devToolsUrlWithProxy = $"{devToolsUrlAbsolute.Scheme}://{devToolsUrlAbsolute.Authority}{devToolsUrlAbsolute.AbsolutePath}?{underlyingV8Endpoint.Scheme}={proxyEndpoint.Authority}{underlyingV8Endpoint.PathAndQuery}";
Microsoft.AspNetCore.InternalTesting (2)
HttpClientSlim.cs (2)
49var authority = requestUri.Authority; 81await writer.WriteAsync($"Host: {requestUri.Authority}\r\n").ConfigureAwait(false);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (19)
Listener\RequestHeaderTests.cs (11)
71Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 72Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 98Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 99Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 126Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 127Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 167Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 168Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 192Assert.Equal(new Uri(address).Authority, requestHeaders["Host"]); 193Assert.Equal(new[] { new Uri(address).Authority }, requestHeaders.GetValues("Host")); 212builder.AppendLine(uri.Authority);
Listener\RequestTests.cs (1)
179builder.AppendLine(uri.Authority);
RequestHeaderTests.cs (2)
62builder.AppendLine(uri.Authority); 259builder.AppendLine(uri.Authority);
RequestTests.cs (4)
379builder.AppendLine(uri.Authority); 536builder.AppendLine(uri.Authority); 583builder.AppendLine(uri.Authority); 632builder.AppendLine(uri.Authority);
ResponseTests.cs (1)
260builder.AppendLine(uri.Authority);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1Connection.cs (1)
647var authority = _absoluteRequestTarget!.Authority;
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
158requestMessage.Headers.Host = uri.Authority;
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
298builder.Append(FormattableString.Invariant($"HOST: {uri.Authority}\r\n\r\n"));
Microsoft.Maui (2)
Handlers\WebView\WebViewHandler.iOS.cs (1)
150 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute);
Platform\iOS\MauiWKWebView.cs (1)
109 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute);
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\WkWebViewRenderer.cs (1)
181 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute);
Microsoft.Maui.Essentials (1)
Types\Shared\WebUtils.shared.cs (1)
87 return new Uri(uri.Scheme + "://" + idn.GetAscii(uri.Authority) + uri.PathAndQuery + uri.Fragment);
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
177_requestUri.Authority, _requestUri.LocalPath, _requestUri.Query);
System.Web.HttpUtility (1)
System\Web\Util\UriUtil.cs (1)
35string authority = uri.Authority; // e.g. "foo:81" in "http://foo:81/bar"