Share via


IODataRequestMessage Interface

Definition

Interface for synchronous OData request messages.

public interface IODataRequestMessage
type IODataRequestMessage = interface
Public Interface IODataRequestMessage
Derived

Properties

Headers

Gets an enumerable over all the headers for this message.

Method

Gets or sets the HTTP method used for this request message.

Url

Gets or sets the request URL for this request message.

Methods

GetHeader(String)

Returns a value of an HTTP header.

GetStream()

Gets the stream backing for this message.

SetHeader(String, String)

Sets the value of an HTTP header.

Extension Methods

GetODataVersion(IODataRequestMessage, 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.

PreferHeader(IODataRequestMessage)

Gets the ODataPreferenceHeader instance to get or set preferences on the "Prefer" header of the requestMessage.

Applies to