The methods of the HttpClient class are listed below. For a complete list of HttpClient class members, see the HttpClient Members topic.
Public Instance Methods
Dispose (inherited from Client) | Disposes of the resources (other than memory) used by the Client. |
Equals (inherited from Object) | Select the method name to go to the Microsoft documentation. |
GetHashCode (inherited from Object) | Select the method name to go to the Microsoft documentation. |
GetType (inherited from Object) | Select the method name to go to the Microsoft documentation. |
StartHandshake | Starts receiving data from the client connection. |
StartRelay (inherited from Client) | Starts relaying data between the remote host and the local client. |
ToString | Overloaded. Returns text information about this HttpClient object. |
Protected Instance Methods
Finalize (inherited from Object) | Select the method name to go to the Microsoft documentation. |
MemberwiseClone (inherited from Object) | Select the method name to go to the Microsoft documentation. |
OnClientReceive (inherited from Client) | Called when we have received data from the local client. Incoming data will immediately be forwarded to the remote host. |
OnClientSent (inherited from Client) | Called when we have sent data to the local client. When all the data has been sent, we will start receiving again from the remote host. |
OnRemoteReceive (inherited from Client) | Called when we have received data from the remote host. Incoming data will immediately be forwarded to the local client. |
OnRemoteSent (inherited from Client) | Called when we have sent data to the remote host. When all the data has been sent, we will start receiving again from the local client. |
Private Instance Methods
IsValidQuery | Checks whether a specified string is a valid HTTP query string. |
OnConnected | Called when we're connected to the requested remote host. |
OnErrorSent | Called when the Bad Request error has been sent to the client. |
OnOkSent | Called when an OK reply has been sent to the local client. |
OnQuerySent | Called when the HTTP query has been sent to the remote host. |
OnReceiveQuery | Called when we received some data from the client connection. |
ParseQuery | Parses a specified HTTP query into its header fields. |
ProcessQuery | Processes a specified query and connects to the requested HTTP web server. |
RebuildQuery | Rebuilds the HTTP query, starting from the HttpRequestType, RequestedPath, HttpVersion and HeaderFields properties. |
SendBadRequest | Sends a "400 - Bad Request" error to the client. |