HttpRequestMessageExtensions Class
Provides extension methods for the HttpRequestMessage class.
Assembly: System.Web.OData (in System.Web.OData.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CreateErrorResponse(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. |
![]() ![]() | GetETag(HttpRequestMessage^, EntityTagHeaderValue^) | Gets the OData ETag from the given request. |
![]() ![]() | GetETag<TEntity>(HttpRequestMessage^, EntityTagHeaderValue^) | Gets the ETag<TEntity> from the given request. |
![]() ![]() | GetNextPageLink(HttpRequestMessage^, Int32) | Creates a link for the next page of results; To be used as the value of @odata.nextLink. |
![]() ![]() | ODataProperties(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.

