Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.HttpListenerResponse Class Referencesealed

Public Member Functions

void AddHeader (string name, string value)
 
void AppendHeader (string name, string value)
 
void AppendCookie (Cookie cookie)
 
void Redirect (string url)
 
void SetCookie (Cookie cookie)
 
void CopyFrom (HttpListenerResponse templateResponse)
 
void Abort ()
 
void Close ()
 
void Close (byte[] responseEntity, bool willBlock)
 

Package Functions

 HttpListenerResponse ()
 
 HttpListenerResponse (HttpListenerContext httpContext)
 
unsafe uint SendHeaders (global::Interop.HttpApi.HTTP_DATA_CHUNK *pDataChunk, HttpResponseStreamAsyncResult asyncResult, global::Interop.HttpApi.HTTP_FLAGS flags, bool isWebSocketHandshake)
 
global::Interop.HttpApi.HTTP_FLAGS ComputeHeaders ()
 
void ComputeCoreHeaders ()
 
void CancelLastWrite (SafeHandle requestQueueHandle)
 

Properties

WebHeaderCollection Headers [get, set]
 
EncodingContentEncoding [get, set]
 
stringContentType [get, set]
 
HttpListenerContext HttpListenerContext [get]
 
HttpListenerRequest HttpListenerRequest [get]
 
EntitySendFormat EntitySendFormat [get, set]
 
bool SendChunked [get, set]
 
long ContentLength64 [get, set]
 
CookieCollection Cookies [get, set]
 
bool KeepAlive [get, set]
 
Stream OutputStream [get]
 
stringRedirectLocation [get, set]
 
string StatusDescription [get, set]
 
int StatusCode [get, set]
 
Version ProtocolVersion [get, set]
 
BoundaryType BoundaryType [get]
 
bool ComputedHeaders [get]
 
bool SentHeaders [get]
 
bool Disposed [get]
 

Private Types

enum  ResponseState { Created , ComputedHeaders , SentHeaders , Closed }
 

Private Member Functions

void ComputeCookies ()
 
void IDisposable. Dispose ()
 
void CheckDisposed ()
 
void CheckSentHeaders ()
 
void Dispose ()
 
void EnsureResponseStream ()
 
void NonBlockingCloseCallback (IAsyncResult asyncResult)
 
unsafe List< GCHandleSerializeHeaders (ref global::Interop.HttpApi.HTTP_RESPONSE_HEADERS headers, bool isWebSocketHandshake)
 
void FreePinnedHeaders (List< GCHandle > pinnedHeaders)
 

Static Private Member Functions

static bool CanSendResponseBody (int responseCode)
 

Private Attributes

BoundaryType _boundaryType = BoundaryType.None
 
CookieCollection _cookies
 
readonly HttpListenerContext _httpContext
 
bool _keepAlive = true
 
HttpResponseStream _responseStream
 
string _statusDescription
 
WebHeaderCollection _webHeaders = new WebHeaderCollection()
 
ResponseState _responseState
 
long _contentLength
 
global::Interop.HttpApi.HTTP_RESPONSE _nativeResponse
 

Static Private Attributes

static readonly int[] s_noResponseBody = new int[5] { 100, 101, 204, 205, 304 }
 

Detailed Description

Definition at line 12 of file HttpListenerResponse.cs.


The documentation for this class was generated from the following file: