HttpRequestMessageExtensions Class

 

Provides extension methods for the HttpRequestMessage class.

Namespace:   System.Web.OData.Extensions
Assembly:  System.Web.OData (in System.Web.OData.dll)

System::Object
  System.Web.OData.Extensions::HttpRequestMessageExtensions

[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ExtensionAttribute]
public ref class HttpRequestMessageExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateErrorResponse(HttpRequestMessage^, HttpStatusCode, ODataError^)

Helper method that performs content negotiation and creates a HttpResponseMessage representing an error with an instance of ObjectContent<T> wrapping oDataError as the content. If no formatter is found, this method returns a response with status 406 NotAcceptable.

This method requires that request has been associated with an instance of HttpConfiguration.

System_CAPS_pubmethodSystem_CAPS_staticGetETag(HttpRequestMessage^, EntityTagHeaderValue^)

Gets the OData ETag from the given request.

System_CAPS_pubmethodSystem_CAPS_staticGetETag<TEntity>(HttpRequestMessage^, EntityTagHeaderValue^)

Gets the ETag<TEntity> from the given request.

System_CAPS_pubmethodSystem_CAPS_staticGetNextPageLink(HttpRequestMessage^, Int32)

Creates a link for the next page of results; To be used as the value of @odata.nextLink.

System_CAPS_pubmethodSystem_CAPS_staticODataProperties(HttpRequestMessage^)

Gets the HttpRequestMessageProperties instance containing OData methods and properties for given HttpRequestMessage.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: