C# Class NodeNetAsync.Net.Http.HttpResponse

Inheritance: IAsyncWriter
Show file Open project: soywiz/NodeNetAsync Class Usage Examples

Public Properties

Property Type Description
Buffering bool
Encoding System.Text.Encoding
Headers HttpHeaders
IsWebSocket bool
Socket NodeNetAsync.Net.TcpSocket
WebSocketVersion int

Public Methods

Method Description
CopyFromStreamASync ( Stream SourceStream ) : System.Threading.Tasks.Task

EndAsync ( ) : System.Threading.Tasks.Task

HttpResponse ( TcpSocket Client ) : System

Redirect ( string Url, HttpCode HttpCode ) : void

SendHeadersAsync ( ) : System.Threading.Tasks.Task

SetHttpCode ( HttpCode Code, string CodeString = null ) : void

StreamFileASync ( string FileName ) : System.Threading.Tasks.Task

WriteAsync ( byte Data, int Offset, int Count = -1 ) : System.Threading.Tasks.Task

WriteAsync ( string Text ) : System.Threading.Tasks.Task

Method Details

CopyFromStreamASync() public method

public CopyFromStreamASync ( Stream SourceStream ) : System.Threading.Tasks.Task
SourceStream Stream
return System.Threading.Tasks.Task

EndAsync() public method

public EndAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

HttpResponse() public method

public HttpResponse ( TcpSocket Client ) : System
Client NodeNetAsync.Net.TcpSocket
return System

Redirect() public method

public Redirect ( string Url, HttpCode HttpCode ) : void
Url string
HttpCode HttpCode
return void

SendHeadersAsync() public method

public SendHeadersAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SetHttpCode() public method

public SetHttpCode ( HttpCode Code, string CodeString = null ) : void
Code HttpCode
CodeString string
return void

StreamFileASync() public method

public StreamFileASync ( string FileName ) : System.Threading.Tasks.Task
FileName string
return System.Threading.Tasks.Task

WriteAsync() public method

public WriteAsync ( byte Data, int Offset, int Count = -1 ) : System.Threading.Tasks.Task
Data byte
Offset int
Count int
return System.Threading.Tasks.Task

WriteAsync() public method

public WriteAsync ( string Text ) : System.Threading.Tasks.Task
Text string
return System.Threading.Tasks.Task

Property Details

Buffering public property

public bool Buffering
return bool

Encoding public property

public Encoding,System.Text Encoding
return System.Text.Encoding

Headers public property

Headers that will be sent as the Response.
public HttpHeaders Headers
return HttpHeaders

IsWebSocket public property

public bool IsWebSocket
return bool

Socket public property

public TcpSocket,NodeNetAsync.Net Socket
return NodeNetAsync.Net.TcpSocket

WebSocketVersion public property

public int WebSocketVersion
return int