C# Class bedrock.net.HttpSocket

Inheritance: bedrock.net.BaseSocket, ISocketEventListener
Show file Open project: PersonifyInc/jabber-net Class Usage Examples

Private Properties

Property Type Description
Connect void

Public Methods

Method Description
Execute ( string method, Uri URL, byte body, int offset, int len, string contentType ) : void

Execute an HTTP request.

HttpSocket ( ISocketEventListener listener ) : System

Create a socket. This starts a thread for background processing, but the thread is mostly paused waiting for new requests.

Private Methods

Method Description
Connect ( Uri uri ) : void

Generally should not be used.

Method Details

Execute() public method

Execute an HTTP request.
public Execute ( string method, Uri URL, byte body, int offset, int len, string contentType ) : void
method string The HTTP method verb. E.g. "GET", "POST", etc.
URL System.Uri The URL to request. MUST be for the same host as the first request.
body byte Any data to post with the request
offset int The offset into body from which to start
len int The number of bytes to read from body, starting at offset
contentType string The MIME type of the supplied body
return void

HttpSocket() public method

Create a socket. This starts a thread for background processing, but the thread is mostly paused waiting for new requests.
public HttpSocket ( ISocketEventListener listener ) : System
listener ISocketEventListener
return System