BlackBerry Dynamics for .NET Maui  12.0.0.9
Runtime library for .NET Maui 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

◆ ReadAsByteArrayAsync()

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.

◆ ReadAsStreamAsync()

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.

◆ ReadAsStringAsync()

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

◆ ContentType

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

Gets the value of the Content-Type.