Method | Description | |
---|---|---|
Dispose ( ) : void |
Release the managed and unmanaged resources.
|
|
HttpClientTransport ( TransferProtocol transfer, string serverAddress, int port, string fileName ) : System |
Initializes a new instance of the HttpClientTransport class. Constructor of class HttpClientTransport to generate HTTP or HTTPs URI.
|
|
HttpClientTransport ( TransferProtocol transfer, string serverAddress, int port, string fileName, ILogPrinter logger ) : System |
Initializes a new instance of the HttpClientTransport class. Constructor of class HttpClientTransport to generate HTTP or HTTPs URI.
|
|
HttpClientTransport ( TransferProtocol transfer, string serverAddress, int port, string fileName, string domainName, string userName, string userPassword ) : System |
Initializes a new instance of the HttpClientTransport class. Constructor of class HttpClientTransport to generate HTTP or HTTPs URI.
|
|
Receive ( byte &payloadData ) : |
Receive HTTP response from the specified server.
|
|
Send ( System.Version httpVersion, string>.Dictionary |
Send HTTP request for the full content from the specified server.
|
|
Send ( System.Version httpVersion, string>.Dictionary |
Send HTTP request for the partial content from the specified server.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Release resources.
|
Method | Description | |
---|---|---|
GetBytes ( byte buffer, int &index, int count ) : byte[] |
Get bytes from bytes.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// If disposing equals true, managed and unmanaged resources are disposed. /// If false, only unmanaged resources can be disposed. /// |
return | void |
public HttpClientTransport ( TransferProtocol transfer, string serverAddress, int port, string fileName ) : System | ||
transfer | TransferProtocol | Indicates the transfer protocol is HTTP or HTTPs. |
serverAddress | string | The address of HTTP server. |
port | int | The port number of HTTP server. |
fileName | string | The requested file name. |
return | System |
public HttpClientTransport ( TransferProtocol transfer, string serverAddress, int port, string fileName, ILogPrinter logger ) : System | ||
transfer | TransferProtocol | Indicates the transfer protocol is HTTP or HTTPs. |
serverAddress | string | The address of HTTP server. |
port | int | The port number of HTTP server. |
fileName | string | The requested file name. |
logger | ILogPrinter | An instance of ILogPrinter. |
return | System |
public HttpClientTransport ( TransferProtocol transfer, string serverAddress, int port, string fileName, string domainName, string userName, string userPassword ) : System | ||
transfer | TransferProtocol | Indicates the transfer protocol is HTTP or HTTPs. |
serverAddress | string | The address of HTTP server. |
port | int | The port number of HTTP server. |
fileName | string | The requested file name. |
domainName | string | The domain name. |
userName | string | The user name. |
userPassword | string | The password. |
return | System |
public Receive ( byte &payloadData ) : |
||
payloadData | byte | Return the whole HTTP response payload. |
return |
public Send ( System.Version httpVersion, string>.Dictionary |
||
httpVersion | System.Version | The HTTP version. |
httpHeader | string>.Dictionary | The HTTP header. |
httpBodyData | byte | The HTTP body data. |
httpMethod | HttpMethod | The HTTP method. |
timeOut | int | The number of milliseconds to wait before the request times out. |
return | void |
public Send ( System.Version httpVersion, string>.Dictionary |
||
httpVersion | System.Version | The HTTP version. |
httpHeader | string>.Dictionary | The HTTP header. |
httpBodyData | byte | The HTTP payload. |
httpMethod | HttpMethod | The HTTP method. |
timeOut | int | The number of milliseconds to wait before the request times out. |
rangeFrom | int | The start position in bytes at which to the requested data. |
rangeTo | int | The end position in bytes at which to the requested data. |
return | void |