Skip to content

Commit 257d867

Browse files
authored
edit
1 parent 5e1e2b0 commit 257d867

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

articles/azure-functions/functions-reference-python.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,7 @@ You can view other SDK type bindings samples for Blob storage in the Python exte
523523

524524
HTTP streams lets you accept and return data from your HTTP endpoints using FastAPI request and response APIs enabled in your functions. These APIs lets the host process large data in HTTP messages as chunks instead of reading an entire message into memory.
525525

526-
This feature makes it possible to handle large data stream, OpenAI integrations, deliver dynamic content, and support other core HTTP scenarios requiring real-time interactions over HTTP. You can also use FastAPI response types with HTTP streams. Without HTTP streams, the size of your HTTP requests and responses are limited by memory restrictions that can be encountered when processing entire message payloads all in memory.
527-
528-
Note that when enabling HTTP streams, the function app will default to using HTTP streaming, and the original HTTP functionality will not work.
526+
This feature makes it possible to handle large data stream, OpenAI integrations, deliver dynamic content, and support other core HTTP scenarios requiring real-time interactions over HTTP. You can also use FastAPI response types with HTTP streams. Without HTTP streams, the size of your HTTP requests and responses are limited by memory restrictions that can be encountered when processing entire message payloads all in memory.
529527
::: zone pivot="python-mode-configuration"
530528
> [!IMPORTANT]
531529
> Support for HTTP streams requires the [Python v2 programming model](functions-reference-python.md?pivots=python-mode-decorators#http-streams-preview).
@@ -541,7 +539,7 @@ Note that when enabling HTTP streams, the function app will default to using HTT
541539

542540
### Enable HTTP streams
543541

544-
HTTP streams are disabled by default. You need to enable this feature in your application settings and also update your code to use the FastAPI package.
542+
HTTP streams are disabled by default. You need to enable this feature in your application settings and also update your code to use the FastAPI package. Note that when enabling HTTP streams, the function app will default to using HTTP streaming, and the original HTTP functionality will not work.
545543

546544
1. Add the `azurefunctions-extensions-http-fastapi` extension package to the `requirements.txt` file in the project, which should include at least these packages:
547545

0 commit comments

Comments
 (0)