34 references to Response
System (23)
net\System\Net\_ListenerResponseStream.cs (18)
32if (!m_HttpContext.Response.ComputedHeaders) { 33flags = m_HttpContext.Response.ComputeHeaders(); 37m_LeftToWrite = method != UnsafeNclNativeMethods.HttpApi.HTTP_VERB.HttpVerbHEAD ? m_HttpContext.Response.ContentLength64 : 0; 152bool sentHeaders = m_HttpContext.Response.SentHeaders; 156statusCode = m_HttpContext.Response.SendHeaders(null, null, flags, false); 162if (m_HttpContext.Response.BoundaryType == BoundaryType.Chunked) { 186statusCode = m_HttpContext.Response.SendHeaders(&dataChunk, null, flags, false); 259bool sentHeaders = m_HttpContext.Response.SentHeaders; 260HttpResponseStreamAsyncResult asyncResult = new HttpResponseStreamAsyncResult(this, state, callback, buffer, offset, size, m_HttpContext.Response.BoundaryType==BoundaryType.Chunked, sentHeaders); 263UpdateAfterWrite((uint)((m_HttpContext.Response.BoundaryType == BoundaryType.Chunked) ? 0 : size)); 267statusCode = m_HttpContext.Response.SendHeaders(null, asyncResult, flags, false); 390bool sentHeaders = m_HttpContext.Response.SentHeaders; 397if ((m_HttpContext.Response.BoundaryType==BoundaryType.Chunked || m_HttpContext.Response.BoundaryType==BoundaryType.None) && (String.Compare(m_HttpContext.Request.HttpMethod, "HEAD", StringComparison.OrdinalIgnoreCase)!=0)) { 398if (m_HttpContext.Response.BoundaryType==BoundaryType.None) { 404if (m_HttpContext.Response.BoundaryType==BoundaryType.Chunked) { 412statusCode = m_HttpContext.Response.SendHeaders(pDataChunk, null, flags, false); 440statusCode = m_HttpContext.Response.SendHeaders(null, null, flags, false);
net\System\Net\HttpListener.cs (1)
1995HttpListenerResponse response = context.Response;
net\System\Net\HttpListenerResponse.cs (1)
657if (CanSendResponseBody(m_HttpContext.Response.StatusCode)) {
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
82HttpListenerResponse response = context.Response;
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (2)
757Contract.Assert(m_OutputStream.InternalHttpContext.Response != null, 759Contract.Assert(m_OutputStream.InternalHttpContext.Response.SentHeaders,
System.ServiceModel (11)
System\ServiceModel\Channels\HttpRequestContext.cs (6)
800HttpChannelUtilities.CopyHeaders(response, this.listenerContext.Response.Headers.Add); 835listenerContext.Response.KeepAlive = false; 839listenerContext.Response.KeepAlive = listener.KeepAliveEnabled; 848return HttpOutput.CreateHttpOutput(listenerContext.Response, Listener, message, this.HttpMethod); 863listenerContext.Response.Abort(); 875listenerContext.Response.Close();
System\ServiceModel\Channels\SharedHttpTransportManager.cs (5)
430listenerContext.Response.StatusCode = (int)HttpStatusCode.MethodNotAllowed; 431listenerContext.Response.Headers.Add(HttpResponseHeader.Allow, "POST"); 435listenerContext.Response.StatusCode = (int)HttpStatusCode.NotFound; 438listenerContext.Response.ContentLength64 = 0; 439listenerContext.Response.Close();