Delen via


ODataUtils.AppendDefaultHeaderValue Method

Definition

Overloads

AppendDefaultHeaderValue(String, String)

Append default values required by OData to specified HTTP header.

When header name is ODataConstants.ContentTypeHeader: If header value is application/json, append the following default values: (odata.)metadata=minimal (odata.)streaming=true IEEE754Compatible=false

AppendDefaultHeaderValue(String, String, ODataVersion)

Append default values required by OData to specified HTTP header.

When header name is ODataConstants.ContentTypeHeader, if header value is application/json append the following default values for 4.0: odata.metadata=minimal odata.streaming=true IEEE754Compatible=false append the following default values for 4.01: metadata=minimal streaming=true IEEE754Compatible=false

AppendDefaultHeaderValue(String, String)

Append default values required by OData to specified HTTP header.

When header name is ODataConstants.ContentTypeHeader: If header value is application/json, append the following default values: (odata.)metadata=minimal (odata.)streaming=true IEEE754Compatible=false

public static string AppendDefaultHeaderValue (string headerName, string headerValue);
static member AppendDefaultHeaderValue : string * string -> string
Public Function AppendDefaultHeaderValue (headerName As String, headerValue As String) As String

Parameters

headerName
String

The name of the header to append default values.

headerValue
String

The original header value string.

Returns

The header value string with appended default values.

Applies to

AppendDefaultHeaderValue(String, String, ODataVersion)

Append default values required by OData to specified HTTP header.

When header name is ODataConstants.ContentTypeHeader, if header value is application/json append the following default values for 4.0: odata.metadata=minimal odata.streaming=true IEEE754Compatible=false append the following default values for 4.01: metadata=minimal streaming=true IEEE754Compatible=false

public static string AppendDefaultHeaderValue (string headerName, string headerValue, Microsoft.OData.ODataVersion version);
static member AppendDefaultHeaderValue : string * string * Microsoft.OData.ODataVersion -> string
Public Function AppendDefaultHeaderValue (headerName As String, headerValue As String, version As ODataVersion) As String

Parameters

headerName
String

The name of the header to append default values.

headerValue
String

The original header value string.

version
ODataVersion

The ODataVersion for which to create the default header value

Returns

The header value string with appended default values.

Applies to