Base:
property
Request
Microsoft.AspNetCore.Http.HttpContext.Request
24 references to Request
Aspire.Dashboard (1)
Utils\GlobalizationHelpers.cs (1)
144tempHttpContext.Request.Headers["Accept-Language"] = acceptLanguage;
Aspire.Dashboard.Tests (22)
BrowserSecurityHeadersMiddlewareTests.cs (1)
55httpContext.Request.Scheme = scheme;
DashboardOptionsTests.cs (1)
526httpsContext.Request.Scheme = "https";
Middleware\DashboardExperienceRedirectMiddlewareTests.cs (5)
35context.Request.QueryString = new QueryString(query); 104context.Request.Method = HttpMethods.Get; 105context.Request.Path = path; 106context.Request.Headers.Accept = accept; 107context.Request.Headers.Cookie = $"Aspire_Dashboard_Experience={experience}";
Model\WebSocketOriginValidatorTests.cs (3)
31context.Request.Scheme = scheme; 35context.Request.Host = HostString.FromUriComponent(host); 40context.Request.Headers.Origin = origin;
OtlpApiKeyAuthenticationHandlerTests.cs (1)
112httpContext.Request.Headers[OtlpApiKeyAuthenticationHandler.ApiKeyHeaderName] = otlpApiKeyHeader;
Terminal\TerminalWebSocketProxyOriginTests.cs (11)
33ctx.Request.Scheme = scheme; 34ctx.Request.Host = HostString.FromUriComponent(host); 35ctx.Request.Headers.Origin = origin; 47ctx.Request.Scheme = "https"; 48ctx.Request.Host = new HostString("dashboard.example.com"); 63ctx.Request.Scheme = "https"; 64ctx.Request.Host = new HostString("dashboard.example.com"); 65ctx.Request.Headers.Origin = origin; 79ctx.Request.Scheme = "https"; 80ctx.Request.Host = new HostString(); 81ctx.Request.Headers.Origin = "https://dashboard.example.com";
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\Internal\HttpLatencyLogEnricherTests.cs (1)
117httpContextMock.Request.Headers[header.Key] = header.Value;