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.​RequestTrailerExtensions

Assembly: Microsoft.AspNetCore.Http.Abstractions

Inheritance: object → RequestTrailerExtensions

HttpRequest extensions for working with request trailing headers.

Methods

GetDeclaredTrailers​(HttpRequest request)
Gets the request "Trailer" header that lists which trailers to expect after the body.
public static bool
SupportsTrailers​(HttpRequest request)
Indicates if the request supports receiving trailer headers.
public static bool
CheckTrailersAvailable​(HttpRequest request)
Checks if the request supports trailers and they are available to be read now. This does not mean that there are any trailers to read.
GetTrailer​(HttpRequest request, string trailerName)
Gets the requested trailing header from the response. Check <see cref="M:Microsoft.AspNetCore.Http.RequestTrailerExtensions.SupportsTrailers(Microsoft.AspNetCore.Http.HttpRequest)" /> or a NotSupportedException may be thrown. Check <see cref="M:Microsoft.AspNetCore.Http.RequestTrailerExtensions.CheckTrailersAvailable(Microsoft.AspNetCore.Http.HttpRequest)" /> 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