HttpClient Methods A Sandcastle Documented Class Library

The HttpClient type exposes the following members.

Methods

  Name Description
Public method delete
Perform an HTTP DELETE request for the given resource.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method getT
Perform an HTTP GET request, parsing the JSON response to create a new object.
Public method getBaseUrl
Public method getForUpdate
Perform an HTTP GET request, parsing the JSON response to update the state of an existing object.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method getRedirect
Perform an HTTP GET request on a URL whose response is expected to be a 3xx redirection, and return the target redirection URL.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method postT
Public method postForUpdate
Perform an HTTP POST request, parsing the JSON response to update the state of an existing object.
Private method readError
Read an error response from the given connection and throw a suitable {@link HttpClientException}. This method always throws an exception, it will never return normally.
Private method readResponseOrErrorT(HttpWebResponse, T)
Read a response or error message from the given connection, handling any 303 redirect responses.
Private method readResponseOrErrorT(HttpWebResponse, T, Boolean)
Read a response or error message from the given connection, handling any 303 redirect responses if
followRedirects
is true.
Private method readResponseOrErrorForUpdateT
Read a response or error message from the given connection, and update the state of the given object.
Public method requestT
Make an API request and parse the JSON response into a new object.
Public method requestForStream
Make an API request and return the raw data from the response as an InputStream.
Public method requestForUpdate
Make an API request and parse the JSON response, using the response to update the state of an existing object.
Private method sendRequest
Handles the sending side of an HTTP request, returning a connection from which the response (or error) can be read.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference