title: How to pass parameters by POST to Azure Functions 2
body: <p>I want to pass parameters to HttpTrigger Type in Azure Function 2. I see an answer for Azure function 1 in below link. </p>
  
  <p><a href="https://stackoverflow.com/questions/45183820/how-to-pass-parameters-by-post-to-an-azure-function?rq=1">How to pass parameters by POST to an Azure function?</a></p>
  
  <p>Answer in the above link is <code>await req.Content.ReadAsAsync&lt;&gt;();</code>
  I am looking the similar answer for Azure Function 2. </p>
  
  <p>Here we are using HttpRequest class instead of HttpRequestMessage class. </p>
  
  <p>Below is the code. </p>
  
  <pre><code>public async Task&lt;IActionResult&gt; Run(
              [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,
              ILogger log)
          {
              log.LogInformation("C# HTTP trigger function processed a request.");
              string data = .............;
          }
  </code></pre>