簡體   English   中英

Azure functions v3 /HTTP trigger functions: Limiting the request body and URL 大小

[英]Azure functions v3 /HTTP trigger functions : Limiting the request body and URL size

我想看看如何限制 API 中的maxRequestLengthmaxAllowedContentLength屬性,該屬性是使用 HTTP 觸發器和 Azure 函數 v3(使用.Net 核心應用程序 3.1)創建的

我嘗試使用剛剛被忽略(預期)的web.config文件。 但我不確定還有哪些其他選擇可以完成。 請注意,我正在嘗試降低默認限制而不是增加它們!

任何幫助將非常感激。 謝謝!

HTTP 請求長度限制為 100 MB(104,857,600 字節),URL 長度限制為 4 KB(4,096 字節)。 這些限制由運行時的 Web.config 文件的 httpRuntime 元素指定。

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=csharp

參考web.config https://github.com/Azure/azure-functions-host/blob/v3.x/src/WebJobs.Script.WebHost/web.config

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM