Skip to content

Commit d4080ff

Browse files
Merge pull request #310494 from mattchenderson/worker-2227
Note for null streams with HttpRequestData
2 parents bf5cc97 + 7288bdf commit d4080ff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

articles/azure-functions/dotnet-isolated-process-guide.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,9 @@ host.Run();
799799

800800
In the built-in model, the system translates the incoming HTTP request message into an [HttpRequestData] object that it passes to the function. This object provides data from the request, including `Headers`, `Cookies`, `Identities`, `URL`, and optionally a message `Body`. This object represents the HTTP request but isn't directly connected to the underlying HTTP listener or the received message.
801801

802+
> [!IMPORTANT]
803+
> If you use `HttpRequestData`, the body of the HTTP request can't be a stream. For example, if the request has the `Transfer-Encoding: chunked` header and no `Content-Length` header, the `HttpRequestData` object's `Body` property will be a null stream. If you need to work with streaming HTTP requests, consider using the [ASP.NET Core integration model](#aspnet-core-integration) instead.
804+
802805
Likewise, the function returns an [HttpResponseData] object, which provides data used to create the HTTP response, including message `StatusCode`, `Headers`, and optionally a message `Body`.
803806

804807
The following example demonstrates the use of `HttpRequestData` and `HttpResponseData`:

0 commit comments

Comments
 (0)