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