Class HttpResponseMessageExtensions
Extension methods for the System.Net.Http.HttpResponseMessage class.
Inheritance
System.Object
HttpResponseMessageExtensions
Namespace: Cuemon.AspNetCore.Http
Assembly: Cuemon.AspNetCore.dll
Syntax
public static class HttpResponseMessageExtensions
Methods
| Improve this DocToHttpResponse(HttpResponseMessage, HttpResponse, Action<HttpResponseMessage, HttpResponse>)
Transfers the specified message
to the HTTP response
pipeline using the transformer
delegate.
Declaration
public static void ToHttpResponse(this HttpResponseMessage message, HttpResponse response, Action<HttpResponseMessage, HttpResponse> transformer)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | message | The System.Net.Http.HttpResponseMessage to extend. |
Microsoft.AspNetCore.Http.HttpResponse | response | The Microsoft.AspNetCore.Http.HttpResponse to transfer the |
System.Action<System.Net.Http.HttpResponseMessage, Microsoft.AspNetCore.Http.HttpResponse> | transformer | The delegate that transforms a System.Net.Http.HttpResponseMessage to an HTTP equivalent Microsoft.AspNetCore.Http.HttpResponse. |