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, Exception) |
Helper method that performs content negotiation and creates a HttpResponseMessage
representing an error with an instance of System.Net.Http.ObjectContent`1 wrapping an
HttpError for exception |
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, HttpError) |
Helper method that performs content negotiation and creates a HttpResponseMessage
representing an error with an instance of System.Net.Http.ObjectContent`1 wrapping |
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, ModelStateDictionary) |
Helper method that performs content negotiation and creates a HttpResponseMessage
representing an error with an instance of System.Net.Http.ObjectContent`1 wrapping an
HttpError for model state |
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, String, Exception) |
Helper method that performs content negotiation and creates a HttpResponseMessage
representing an error with an instance of System.Net.Http.ObjectContent`1 wrapping an
HttpError with error message |
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, String) |
Helper method that performs content negotiation and creates a HttpResponseMessage
representing an error with an instance of System.Net.Http.ObjectContent`1 wrapping an
HttpError with message |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, IEnumerable<MediaTypeFormatter>) |
Helper method that performs content negotiation and creates a HttpResponseMessage with an instance of System.Net.Http.ObjectContent`1 as the content if a formatter can be found. If no formatter is found, this method returns a response with status 406 NotAcceptable. |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue) |
Helper method that creates a HttpResponseMessage with an System.Net.Http.ObjectContent`1
instance containing the provided |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeFormatter, String) |
Helper method that creates a HttpResponseMessage with an System.Net.Http.ObjectContent`1
instance containing the provided |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeFormatter) |
Helper method that creates a HttpResponseMessage with an System.Net.Http.ObjectContent`1
instance containing the provided |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeHeaderValue) |
Helper method that creates a HttpResponseMessage with an System.Net.Http.ObjectContent`1
instance containing the provided |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, String) |
Helper method that creates a HttpResponseMessage with an System.Net.Http.ObjectContent`1
instance containing the provided |
CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T) |
Helper method that performs content negotiation and creates a HttpResponseMessage with an instance of System.Net.Http.ObjectContent`1 as the content if a formatter can be found. If no formatter is found, this method returns a response with status 406 NotAcceptable. configuration. |
CreateResponse<T>(HttpRequestMessage, T) |
Helper method that performs content negotiation and creates a HttpResponseMessage with an instance of System.Net.Http.ObjectContent`1 as the content and OK as the status code if a formatter can be found. If no formatter is found, this method returns a response with status 406 NotAcceptable. |