C# Class bedrock.net.HttpSocket

Inheritance: bedrock.net.BaseSocket, ISocketEventListener
Afficher le fichier Open project: PersonifyInc/jabber-net Class Usage Examples

Private Properties

Свойство Type Description
Connect void

Méthodes publiques

Méthode 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

Méthode Description
Connect ( Uri uri ) : void

Generally should not be used.

Method Details

Execute() public méthode

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
Résultat void

HttpSocket() public méthode

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
Résultat System