Skip to content

Commit b7bb02b

Browse files
Apply suggestions from code review
Co-authored-by: Günther Foidl <[email protected]>
1 parent 2d87bdc commit b7bb02b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

aspnetcore/fundamentals/middleware/request-response.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ These issues are fixable, but the code is becoming progressively more complicate
7070

7171
## Pipelines
7272

73-
When writing directly to `HttpResponse.BodyWriter`, call `PipeWriter.FlushAsync()` manually to ensure the data is flushed to the underlying response stream. Here's why:
73+
When writing directly to `HttpResponse.BodyWriter`, call `PipeWriter.FlushAsync()` manually to ensure the data is flushed to the underlying response data structure. Here's why:
7474

7575
* `HttpResponse.BodyWriter` is a `PipeWriter` that buffers data until a flush operation is triggered.
76-
* Calling `FlushAsync` writes the buffered data to the underlying Stream (`HttpResponse.Body`).
77-
*
76+
* Calling `FlushAsync` writes the buffered data to the underlying network operation
7877
The following example shows how the same scenario can be handled using a [PipeReader](/dotnet/standard/io/pipelines#pipe):
7978

8079
[!code-csharp[](request-response/samples/3.x/RequestResponseSample/Startup.cs?name=GetListOfStringFromPipe)]

0 commit comments

Comments
 (0)