HttpRequestMessageExtensions Class

Definition

Provides extension methods for the HttpRequestMessage class.

public static class HttpRequestMessageExtensions
type HttpRequestMessageExtensions = class
Public Module HttpRequestMessageExtensions
Inheritance
HttpRequestMessageExtensions

Methods

CreateErrorResponse(HttpRequestMessage, HttpStatusCode, ODataError)

Helper method that performs content negotiation and creates a HttpResponseMessage representing an error with an instance of System.Net.Http.ObjectContent`1 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 System.Web.Http.HttpConfiguration.

CreateRequestContainer(HttpRequestMessage, String)

Creates a request container that associates with the request.

DeleteRequestContainer(HttpRequestMessage, Boolean)

Deletes the request container from the request and disposes the container if dispose is true.

GetDeserializerProvider(HttpRequestMessage)

Gets the ODataDeserializerProvider from the request container.

GetETag(HttpRequestMessage, EntityTagHeaderValue)

Gets the OData ETag from the given request.

GetETag<TEntity>(HttpRequestMessage, EntityTagHeaderValue)

Gets the ETag<TEntity> from the given request.

GetModel(HttpRequestMessage)

Gets the IEdmModel from the request container.

GetNextPageLink(HttpRequestMessage, Int32)

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

GetNextPageLink(HttpRequestMessage, Int32, Object, Func<Object,String>)

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

GetPathHandler(HttpRequestMessage)

Gets the IODataPathHandler from the request container.

GetReaderSettings(HttpRequestMessage)

Gets the ODataMessageReaderSettings from the request container.

GetRequestContainer(HttpRequestMessage)

Gets the dependency injection container for the OData request.

GetRoutingConventions(HttpRequestMessage)

Gets the set of IODataRoutingConvention from the request container.

GetSerializerProvider(HttpRequestMessage)

Gets the ODataSerializerProvider from the request container.

GetWriterSettings(HttpRequestMessage)

Gets the ODataMessageWriterSettings from the request container.

ODataProperties(HttpRequestMessage)

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

Applies to