Share via


ODataAsynchronousResponseMessage Class

Definition

Representing the message of a non-batch async response.

public sealed class ODataAsynchronousResponseMessage : Microsoft.OData.IContainerProvider, Microsoft.OData.IODataResponseMessageAsync
type ODataAsynchronousResponseMessage = class
    interface IContainerProvider
    interface IODataResponseMessageAsync
    interface IODataResponseMessage
Public NotInheritable Class ODataAsynchronousResponseMessage
Implements IContainerProvider, IODataResponseMessageAsync
Inheritance
ODataAsynchronousResponseMessage
Implements

Properties

Container

The dependency injection container to get related services.

Headers

Gets an enumerable over all the headers for this message.

StatusCode

Gets or sets the result status code of the response message.

Methods

GetHeader(String)

Returns a value of an HTTP header of this operation.

GetStream()

Gets the stream backing for this message.

GetStreamAsync()

Asynchronously get the stream backing for this message.

SetHeader(String, String)

Sets the value of an HTTP header of this operation.

Extension Methods

GetODataVersion(IODataResponseMessage, ODataVersion)

Reads the OData-Version header from the message and parses it. If no OData-Version header is found it sets the default version to be used for reading.

PreferenceAppliedHeader(IODataResponseMessage)

Gets the ODataPreferenceHeader instance to get or set preferences on the "Preference-Applied" header of the responseMessage.

Applies to