1 write to _req
Microsoft.AspNetCore.TestHost (1)
RequestBuilder.cs (1)
23
_req
= new HttpRequestMessage(HttpMethod.Get, path);
11 references to _req
Microsoft.AspNetCore.TestHost (11)
RequestBuilder.cs (11)
40
configure(
_req
);
52
if (!
_req
.Headers.TryAddWithoutValidation(name, value))
54
if (
_req
.Content == null)
56
_req
.Content = new StreamContent(Stream.Null);
58
if (!
_req
.Content.Headers.TryAddWithoutValidation(name, value))
74
_req
.Method = new HttpMethod(method);
75
return TestServer.CreateClient().SendAsync(
_req
);
84
_req
.Method = HttpMethod.Get;
85
return TestServer.CreateClient().SendAsync(
_req
);
94
_req
.Method = HttpMethod.Post;
95
return TestServer.CreateClient().SendAsync(
_req
);