From 68c6cab03d68d52dab49f5220d7fec2bb567e75f Mon Sep 17 00:00:00 2001 From: Marc Gravell Date: Fri, 3 Nov 2023 10:32:46 +0000 Subject: [PATCH] Update use-http-context.md (#30919) --- aspnetcore/fundamentals/use-http-context.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aspnetcore/fundamentals/use-http-context.md b/aspnetcore/fundamentals/use-http-context.md index 6b0e0b6b26..e11443a8ff 100644 --- a/aspnetcore/fundamentals/use-http-context.md +++ b/aspnetcore/fundamentals/use-http-context.md @@ -99,6 +99,9 @@ An app can't modify headers after the response has started. Once the response st > System.InvalidOperationException: Headers are read-only, response has already started. +> [!NOTE] +> Unless response buffering is enabled, all write operations (for example, ) flush the response body internally and mark the response as started. Response buffering is disabled by default. + ### Write response body An HTTP response can include a response body. The response body is data associated with the response, such as generated web page content, UTF-8 JSON payload, or a file.