来自 Azure Function 的 HttpRequest 对象为空

HttpRequest object is null in response from Azure Function

这是我的 Azure 函数:

    [FunctionName("CreateItem")]
    public static async Task<IActionResult> Run(
        [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req, ILogger log)
    {
        string CompanyId = req.Query["CompanyId"];
        string Table = req.Query["Table"];
        string RowId = req.Query["RowId"];
        string Key = req.Query["Key"];
        string Action = req.Query["Action"];
        string Arg = req.Query["Arg"];

        string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
        dynamic data = JsonConvert.DeserializeObject(requestBody);

当我在运行时查看 requestBody 对象时,它是空的。这是为什么?

谢谢James Gould and Kresten。将您的讨论作为答案发布以帮助其他社区成员。

The Actual request was not passing the body. Its just passing the query string. That's the reason why requestBody objcet in runtime is null