BlackBerry Dynamics for Xamarin Forms  11.0.1.26
Runtime library for Xamarin Forms applications
BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpContent Interface Reference

Provides a base interface for an HTTP entity body. More...

Inherited by BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpByteArrayContent, BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpStreamContent, and BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpStringContent.

Public Member Functions

Task< string > ReadAsStringAsync ()
 Serialize the HTTP content to a string as an asynchronous operation. More...
 
Task< byte[]> ReadAsByteArrayAsync ()
 Serialize the HTTP content to a byte array as an asynchronous operation. More...
 
Task< Stream > ReadAsStreamAsync ()
 Serialize the HTTP content and return a stream that represents the content as an asynchronous operation. More...
 

Properties

string ContentType [get]
 Gets the value of the Content-Type. More...
 

Detailed Description

Provides a base interface for an HTTP entity body.

Member Function Documentation

Task<byte[]> BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpContent.ReadAsByteArrayAsync ( )

Serialize the HTTP content to a byte array as an asynchronous operation.

Returns
Byte array that represents the content.
Task<Stream> BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpContent.ReadAsStreamAsync ( )

Serialize the HTTP content and return a stream that represents the content as an asynchronous operation.

Returns
Stream that represents the content.
Task<string> BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpContent.ReadAsStringAsync ( )

Serialize the HTTP content to a string as an asynchronous operation.

Content-Encoding header is not validated. It's the caller's responsibility to call ReadAsStringAsync() only on decoded content.

Returns
String that represents the content.

Property Documentation

string BBDXamarinForms.Common.Interfaces.Networking.Http.Content.IBBDHttpContent.ContentType
get

Gets the value of the Content-Type.