Delen via


ResponseTrailerExtensions Class

Definition

Contains extension methods for modifying the Trailer response header and trailing headers in an HttpResponse.

public ref class ResponseTrailerExtensions abstract sealed
public static class ResponseTrailerExtensions
type ResponseTrailerExtensions = class
Public Module ResponseTrailerExtensions
Inheritance
ResponseTrailerExtensions

Methods

AppendTrailer(HttpResponse, String, StringValues)

Adds the given trailer header to the trailers collection to be sent at the end of the response body. Check SupportsTrailers(HttpResponse) or an InvalidOperationException may be thrown.

DeclareTrailer(HttpResponse, String)

Adds the given trailer name to the 'Trailer' response header. This must happen before the response headers are sent.

SupportsTrailers(HttpResponse)

Indicates if the server supports sending trailer headers for this response.

Applies to