Skip to content

Add Stream to Pipe Adapter #3966

@jkotalik

Description

@jkotalik

In 3.0, we will be starting to expose Pipes directly across the AspNetCore stack via PipeReader and PipeWriter. The initial design is to have new properties directly on the HttpContext to get HttpRequest.Body as a PipeReader and HttpResponse.Body as a PipeWriter.

One of the first needs we have is the ability to adapt a Stream into a Pipe. For example, when a middleware overwrites the Response.Body with a new stream, like ResponseCompression, Calling response.PipeWriter should return a PipeWriter that reflects the change made to the stream.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions