Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Http.​ResponseTrailerExtensions

Assembly: Microsoft.AspNetCore.Http.Abstractions

Inheritance: object → ResponseTrailerExtensions

Contains extension methods for modifying the `Trailer` response header and trailing headers in an <see cref="T:Microsoft.AspNetCore.Http.HttpResponse" /> .

Methods

public static void
DeclareTrailer​(HttpResponse response, string trailerName)
Adds the given trailer name to the 'Trailer' response header. This must happen before the response headers are sent.
public static bool
SupportsTrailers​(HttpResponse response)
Indicates if the server supports sending trailer headers for this response.
public static void
AppendTrailer​(HttpResponse response, string trailerName, Extensions.​Primitives.​StringValues trailerValues)
Adds the given trailer header to the trailers collection to be sent at the end of the response body. Check <see cref="M:Microsoft.AspNetCore.Http.ResponseTrailerExtensions.SupportsTrailers(Microsoft.AspNetCore.Http.HttpResponse)" /> or an InvalidOperationException may be thrown.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object