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