1 write to _httpContext
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
35_httpContext = new DefaultHttpContext();
15 references to _httpContext
Microsoft.AspNetCore.TestHost (15)
HttpContextBuilder.cs (15)
39var request = _httpContext.Request; 51_httpContext.Features.Set<IHttpBodyControlFeature>(this); 52_httpContext.Features.Set<IHttpResponseFeature>(_responseFeature); 53_httpContext.Features.Set<IHttpResponseBodyFeature>(_responseFeature); 54_httpContext.Features.Set<IHttpRequestLifetimeFeature>(_requestLifetimeFeature); 55_httpContext.Features.Set<IHttpResponseTrailersFeature>(_responseTrailersFeature); 56_httpContext.Features.Set<IHttpUpgradeFeature>(new UpgradeFeature()); 65configureContext(_httpContext, _requestPipe.Reader); 92if (HttpProtocol.IsHttp2(_httpContext.Request.Protocol) || 93HttpProtocol.IsHttp3(_httpContext.Request.Protocol)) 95_httpContext.Features.Set<IHttpResetFeature>(this); 101_testContext = _application.CreateContext(_httpContext.Features); 189_responseReadCompleteCallback?.Invoke(_httpContext); 233foreach (var pair in _httpContext.Features) 237var serverResponseFeature = _httpContext.Features.GetRequiredFeature<IHttpResponseFeature>();