Skip to content

Unit testing HttpContext with HTTP2 features #6871

Open
@JamesNK

Description

@JamesNK

Is there a simple way to create a HttpContext with HTTP2 features? I want to write some HTTP2-ish unit tests.

var context = new DefaultHttpContext();
context.Response.AppendTrailers("", "");

This throws an error because there is no IHttpResponseTrailersFeature.

Is there a simple way to make the context HTTP2-erized. If not, consider adding one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTTP2affected-mediumThis issue impacts approximately half of our customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-http-abstractionsseverity-minorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions