HttpRequestMessageExtensions Methods

The HttpRequestMessageExtensions type exposes the following members.

  Name Description
Public method Static member CreateErrorResponse(HttpRequestMessage, InvalidByteRangeException)
Public method Static member CreateErrorResponse(HttpRequestMessage, HttpStatusCode, Exception) Creates an HttpResponseMessage that represents an exception.
Public method Static member CreateErrorResponse(HttpRequestMessage, HttpStatusCode, String) Creates an HttpResponseMessage that represents an error message.
Public method Static member CreateErrorResponse(HttpRequestMessage, HttpStatusCode, HttpError) Creates an HttpResponseMessage that represents an error.
Public method Static member CreateErrorResponse(HttpRequestMessage, HttpStatusCode, ModelStateDictionary) Creates an HttpResponseMessage that represents an error in the model state.
Public method Static member CreateErrorResponse(HttpRequestMessage, HttpStatusCode, String, Exception) Creates an HttpResponseMessage that represents an exception with an error message.
Public method Static member CreateResponse(HttpRequestMessage)
Public method Static member CreateResponse(HttpRequestMessage, HttpStatusCode)
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeFormatter) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeHeaderValue) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, String) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, HttpConfiguration) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeFormatter, MediaTypeHeaderValue) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member CreateResponse<T>(HttpRequestMessage, HttpStatusCode, T, MediaTypeFormatter, String) Creates an HttpResponseMessage wired up to the associated HttpRequestMessage.
Public method Static member DisposeRequestResources Disposes of all tracked resources associated with the request which were added via the RegisterForDispose method.
Public method Static member GetClientCertificate Gets the current X.509 certificate from the given HTTP request.
Public method Static member GetConfiguration Retrieves the HttpConfiguration for the given request.
Public method Static member GetCorrelationId Retrieves the Guid which has been assigned as the correlation ID associated with the given request. The value will be created and set the first time this method is called.
Public method Static member GetDependencyScope Retrieves the IDependencyScope for the given request or null if not available.
Public method Static member GetQueryNameValuePairs Gets the parsed query string as a collection of key-value pairs.
Public method Static member GetRouteData Retrieves the IHttpRouteData for the given request or null if not available.
Public method Static member GetSecurityMessageProperty Gets the current SecurityMessageProperty stored in the request message properties for the given request.
Public method Static member GetSynchronizationContext Retrieves the SynchronizationContext for the given request or null if not available.
Public method Static member GetUrlHelper Gets a UrlHelper instance for an HTTP request.
Public method Static member RegisterForDispose Adds the given resource to a list of resources that will be disposed by a host once the request is disposed.
Top
Show: