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)
39
var 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());
65
configureContext(
_httpContext
, _requestPipe.Reader);
92
if (HttpProtocol.IsHttp2(
_httpContext
.Request.Protocol) ||
93
HttpProtocol.IsHttp3(
_httpContext
.Request.Protocol))
95
_httpContext
.Features.Set<IHttpResetFeature>(this);
101
_testContext = _application.CreateContext(
_httpContext
.Features);
189
_responseReadCompleteCallback?.Invoke(
_httpContext
);
233
foreach (var pair in
_httpContext
.Features)
237
var serverResponseFeature =
_httpContext
.Features.GetRequiredFeature<IHttpResponseFeature>();