CoreTweet  2.0.0-beta.2
Yet another .NET Twitter Library
Public Member Functions | Properties | List of all members
CoreTweet.AsyncResponse Class Reference

Represents an asynchronous response. More...

Inheritance diagram for CoreTweet.AsyncResponse:

Public Member Functions

 AsyncResponse (HttpResponseMessage source)
 Initializes a new instance of the AsyncResponse class with a specified source. More...
 
Task< Stream > GetResponseStreamAsync ()
 Gets the stream that is used to read the body of the response from the server as an asynchronous operation. More...
 
void Dispose ()
 Closes the stream and releases all the resources. More...
 

Properties

HttpResponseMessage Source [get]
 Gets the source of the response. More...
 
int StatusCode [get]
 Gets the status code of the response. More...
 
IDictionary< string, string > Headers [get]
 Gets the headers of the response. More...
 

Detailed Description

Represents an asynchronous response.

Constructor & Destructor Documentation

◆ AsyncResponse()

CoreTweet.AsyncResponse.AsyncResponse ( HttpResponseMessage  source)
inline

Initializes a new instance of the AsyncResponse class with a specified source.

Member Function Documentation

◆ Dispose()

void CoreTweet.AsyncResponse.Dispose ( )
inline

Closes the stream and releases all the resources.

◆ GetResponseStreamAsync()

Task<Stream> CoreTweet.AsyncResponse.GetResponseStreamAsync ( )
inline

Gets the stream that is used to read the body of the response from the server as an asynchronous operation.

Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the System.IO.Stream containing the body of the response.

Property Documentation

◆ Headers

IDictionary<string, string> CoreTweet.AsyncResponse.Headers
get

Gets the headers of the response.

◆ Source

HttpResponseMessage CoreTweet.AsyncResponse.Source
get

Gets the source of the response.

◆ StatusCode

int CoreTweet.AsyncResponse.StatusCode
get

Gets the status code of the response.


The documentation for this class was generated from the following file: