C# 클래스 Microsoft.Protocols.TestTools.StackSdk.CommonStack.HttpClientTransport

HttpClientTransport class provides transport layer support.
상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 메소드들

메소드 설명
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 ) : HttpWebResponse

Receive HTTP response from the specified server.

Send ( System.Version httpVersion, string>.Dictionary httpHeader, byte httpBodyData, HttpMethod httpMethod, int timeOut ) : void

Send HTTP request for the full content from the specified server.

Send ( System.Version httpVersion, string>.Dictionary httpHeader, byte httpBodyData, HttpMethod httpMethod, int timeOut, int rangeFrom, int rangeTo ) : void

Send HTTP request for the partial content from the specified server.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Release resources.

비공개 메소드들

메소드 설명
GetBytes ( byte buffer, int &index, int count ) : byte[]

Get bytes from bytes.

메소드 상세

Dispose() 공개 메소드

Release the managed and unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Release resources.
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. ///
리턴 void

HttpClientTransport() 공개 메소드

Initializes a new instance of the HttpClientTransport class. Constructor of class HttpClientTransport to generate HTTP or HTTPs URI.
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.
리턴 System

HttpClientTransport() 공개 메소드

Initializes a new instance of the HttpClientTransport class. Constructor of class HttpClientTransport to generate HTTP or HTTPs URI.
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.
리턴 System

HttpClientTransport() 공개 메소드

Initializes a new instance of the HttpClientTransport class. Constructor of class HttpClientTransport to generate HTTP or HTTPs URI.
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.
리턴 System

Receive() 공개 메소드

Receive HTTP response from the specified server.
public Receive ( byte &payloadData ) : HttpWebResponse
payloadData byte Return the whole HTTP response payload.
리턴 System.Net.HttpWebResponse

Send() 공개 메소드

Send HTTP request for the full content from the specified server.
public Send ( System.Version httpVersion, string>.Dictionary httpHeader, byte httpBodyData, HttpMethod httpMethod, int timeOut ) : void
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.
리턴 void

Send() 공개 메소드

Send HTTP request for the partial content from the specified server.
public Send ( System.Version httpVersion, string>.Dictionary httpHeader, byte httpBodyData, HttpMethod httpMethod, int timeOut, int rangeFrom, int rangeTo ) : void
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.
리턴 void