title: Availability of HttpClientFactory for Azure Functions v2
body: <p>I want to know if HttpClientFactory or similar is available for Azure Functions v2.</p>
  
  <p>Below is what is recommended, but HttpClientFactory or similar is not shown. </p>
  
  <pre><code>// Create a single, static HttpClient
  private static HttpClient httpClient = new HttpClient();
  
  public static async Task Run(string input)
  {
      var response = await httpClient.GetAsync("https://example.com");
      // Rest of function
  }
  </code></pre>
  
  <p><a href="https://docs.microsoft.com/en-gb/azure/azure-functions/manage-connections" rel="noreferrer">https://docs.microsoft.com/en-gb/azure/azure-functions/manage-connections</a></p>
  
  <p>Below is a good link but I am not sure if it can be used on production, or <strong>an official feature is available.</strong></p>
  
  <p><a href="https://www.tpeczek.com/2018/12/alternative-approach-to-httpclient-in.html" rel="noreferrer">https://www.tpeczek.com/2018/12/alternative-approach-to-httpclient-in.html</a></p>
  
  <p><strong>Update:</strong></p>
  
  <p>Problem to solve</p>
  
  <p>1 Providing managed HttpClient pool instead of single HttpClient, like HttpClientFactory in ASP.NET CORE 2.2</p>