51 references to Response
InMemory.FunctionalTests (17)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (17)
140
context.
Response
.StatusCode = 500;
141
context.
Response
.StatusDescription = "Internal Server Error";
142
context.
Response
.Close();
161
context.
Response
.StatusCode = 404;
162
context.
Response
.Close();
186
context.
Response
.StatusCode = 200;
187
context.
Response
.ContentType = "application/pkix-cert";
188
context.
Response
.Close(certData, willBlock: true);
204
context.
Response
.StatusCode = 200;
205
context.
Response
.ContentType = "application/pkix-crl";
206
context.
Response
.Close(crl, willBlock: true);
231
context.
Response
.StatusCode = 400;
232
context.
Response
.Close();
245
context.
Response
.StatusCode = 200;
246
context.
Response
.StatusDescription = "OK";
247
context.
Response
.ContentType = "application/ocsp-response";
248
context.
Response
.Close(ocspResponse, willBlock: true);
Microsoft.AspNetCore.InternalTesting.Tests (4)
HttpClientSlimTest.cs (4)
38
using (var host = StartHost(out var address, handler: context => context.Request.InputStream.CopyToAsync(context.
Response
.OutputStream)))
103
context.
Response
.StatusCode = statusCode;
107
await context.
Response
.OutputStream.WriteAsync(_defaultResponse, 0, _defaultResponse.Length);
114
context.
Response
.Close();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (17)
src\Servers\Kestrel\shared\test\RevocationResponder.cs (17)
140
context.
Response
.StatusCode = 500;
141
context.
Response
.StatusDescription = "Internal Server Error";
142
context.
Response
.Close();
161
context.
Response
.StatusCode = 404;
162
context.
Response
.Close();
186
context.
Response
.StatusCode = 200;
187
context.
Response
.ContentType = "application/pkix-cert";
188
context.
Response
.Close(certData, willBlock: true);
204
context.
Response
.StatusCode = 200;
205
context.
Response
.ContentType = "application/pkix-crl";
206
context.
Response
.Close(crl, willBlock: true);
231
context.
Response
.StatusCode = 400;
232
context.
Response
.Close();
245
context.
Response
.StatusCode = 200;
246
context.
Response
.StatusDescription = "OK";
247
context.
Response
.ContentType = "application/ocsp-response";
248
context.
Response
.Close(ocspResponse, willBlock: true);
System.Net.HttpListener (13)
System\Net\Managed\HttpConnection.cs (5)
215
_context.
Response
.SendChunked = true;
233
return new HttpResponseStream(_stream, _context.
Response
, true);
235
_responseStream = new HttpResponseStream(_stream, _context.
Response
, listener.IgnoreWriteExceptions);
450
HttpListenerResponse response = _context.
Response
;
517
force = (_context.
Response
.Headers[HttpKnownHeaderNames.Connection] == HttpHeaderStrings.Close);
System\Net\Managed\HttpListenerResponse.Managed.cs (2)
187
if (CanSendResponseBody(_httpContext!.
Response
.StatusCode))
202
_contentLength = CanSendResponseBody(_httpContext!.
Response
.StatusCode) ? -1 : 0;
System\Net\Managed\ListenerAsyncResult.Managed.cs (5)
128
context.
Response
.StatusCode = (int)HttpStatusCode.InternalServerError;
136
context.
Response
.StatusCode = (int)HttpStatusCode.Unauthorized;
148
context.
Response
.StatusCode = (int)errorCode;
151
context.
Response
.Headers["WWW-Authenticate"] = context.AuthenticationSchemes + " realm=\"" + context._listener!.Realm + "\"";
158
context.
Response
.OutputStream.Close();
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
20
HttpListenerResponse response = context.
Response
;