Del via


HttpTransformer.TransformResponseTrailersAsync Method

Definition

Overloads

TransformResponseTrailersAsync(HttpContext, HttpResponseMessage)
Obsolete.

A callback that is invoked after the response body to modify trailers, if supported. The trailers will be copied to the HttpContext.Response by the base implementation.

TransformResponseTrailersAsync(HttpContext, HttpResponseMessage, CancellationToken)

A callback that is invoked after the response body to modify trailers, if supported. The trailers will be copied to the HttpContext.Response by the base implementation.

TransformResponseTrailersAsync(HttpContext, HttpResponseMessage)

Source:
HttpTransformer.cs
Source:
HttpTransformer.cs

Caution

This overload of TransformResponseTrailersAsync is obsolete. Override and use the overload accepting a CancellationToken instead.

A callback that is invoked after the response body to modify trailers, if supported. The trailers will be copied to the HttpContext.Response by the base implementation.

public virtual System.Threading.Tasks.ValueTask TransformResponseTrailersAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, System.Net.Http.HttpResponseMessage proxyResponse);
[System.Obsolete("This overload of TransformResponseTrailersAsync is obsolete. Override and use the overload accepting a CancellationToken instead.")]
public virtual System.Threading.Tasks.ValueTask TransformResponseTrailersAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, System.Net.Http.HttpResponseMessage proxyResponse);
abstract member TransformResponseTrailersAsync : Microsoft.AspNetCore.Http.HttpContext * System.Net.Http.HttpResponseMessage -> System.Threading.Tasks.ValueTask
override this.TransformResponseTrailersAsync : Microsoft.AspNetCore.Http.HttpContext * System.Net.Http.HttpResponseMessage -> System.Threading.Tasks.ValueTask
[<System.Obsolete("This overload of TransformResponseTrailersAsync is obsolete. Override and use the overload accepting a CancellationToken instead.")>]
abstract member TransformResponseTrailersAsync : Microsoft.AspNetCore.Http.HttpContext * System.Net.Http.HttpResponseMessage -> System.Threading.Tasks.ValueTask
override this.TransformResponseTrailersAsync : Microsoft.AspNetCore.Http.HttpContext * System.Net.Http.HttpResponseMessage -> System.Threading.Tasks.ValueTask
Public Overridable Function TransformResponseTrailersAsync (httpContext As HttpContext, proxyResponse As HttpResponseMessage) As ValueTask

Parameters

httpContext
HttpContext

The incoming request.

proxyResponse
HttpResponseMessage

The response from the destination.

Returns

Attributes

Applies to

TransformResponseTrailersAsync(HttpContext, HttpResponseMessage, CancellationToken)

Source:
HttpTransformer.cs
Source:
HttpTransformer.cs

A callback that is invoked after the response body to modify trailers, if supported. The trailers will be copied to the HttpContext.Response by the base implementation.

public virtual System.Threading.Tasks.ValueTask TransformResponseTrailersAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, System.Net.Http.HttpResponseMessage proxyResponse, System.Threading.CancellationToken cancellationToken);
abstract member TransformResponseTrailersAsync : Microsoft.AspNetCore.Http.HttpContext * System.Net.Http.HttpResponseMessage * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
override this.TransformResponseTrailersAsync : Microsoft.AspNetCore.Http.HttpContext * System.Net.Http.HttpResponseMessage * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Overridable Function TransformResponseTrailersAsync (httpContext As HttpContext, proxyResponse As HttpResponseMessage, cancellationToken As CancellationToken) As ValueTask

Parameters

httpContext
HttpContext

The incoming request.

proxyResponse
HttpResponseMessage

The response from the destination.

cancellationToken
CancellationToken

Indicates that the request is being canceled.

Returns

Applies to