HttpRequestMessageExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
This method requires that |
CreateRequestContainer(HttpRequestMessage, String) |
Creates a request container that associates with the |
DeleteRequestContainer(HttpRequestMessage, Boolean) |
Deletes the request container from the |
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. |