【发布时间】:2021-02-25 21:41:29
【问题描述】:
我在 Mac High Sierra 上使用 azure-cli v 2.8.0 和 Python 3.8。我有一个在本地运行的函数应用
func start
我用基本文件夹结构定义了我的函数...
my-func/__init__.py
my-func/function.json
function.json 文件的样子
{
"scriptFile": "__init__.py",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"post",
"get"
]
},
{
"type": "http",
"direction": "out",
"name": "$return"
}
]
}
我有一个 host.json 文件,看起来像
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 2.0.0)"
}
}
不确定如何/在哪里指定我想使用 HTTP 2.0 协议,但据检查员告诉我,它会出现在我使用 http 1.1 的 Angular 应用程序对我的本地服务器的请求中
如何强制我的本地函数服务器使用 HTTP 2.0?
【问题讨论】:
标签: python-3.x azure azure-functions http2 azure-cli