Update use-http-context.md (#30919)

pull/30926/head
Marc Gravell 2023-11-03 10:32:46 +00:00 committed by GitHub
parent eabb4963bd
commit 68c6cab03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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, <xref:Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.WriteAsync%2A>) 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.