C# Класс bedrock.net.HttpSocket

Наследование: bedrock.net.BaseSocket, ISocketEventListener
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Connect void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Connect ( Uri uri ) : void

Generally should not be used.

Описание методов

Execute() публичный Метод

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
Результат void

HttpSocket() публичный Метод

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
Результат System