title: Python HttpTrigger Azure Function url param as array
body: <p>I have a very simple HttpTrigger Azure function in Python. </p>
  
  <pre><code>import logging
  import azure.functions as func
  
  def main(req: func.HttpRequest) -&gt; func.HttpResponse:
      logging.info('Python HTTP trigger function processed a request.')
  
      param_list = req.params.get('param[]')
  
      for i in param_list:
  
          # Do some stuff...
  </code></pre>
  
  <p>I'm trying to pass an array object as a url param into the HttpTrigger Azure function in Python. E.g.</p>
  
  <blockquote>
    <p>www.somewebsite.net/api/HttpTrigger?param[]=hello,param[]=again,param[]=world</p>
  </blockquote>
  
  <p>The HttpRequest formats the param as a comma sepeated string: </p>
  
  <blockquote>
    <p>param[] = 'hello,again,world'</p>
  </blockquote>
  
  <p>However what I need is so the param to be type array object: </p>
  
  <blockquote>
    <p>param[] = ['hello', 'again', 'world']</p>
  </blockquote>
  
  <p>Any ideas how to change how HttpRequest type the url params?</p>
  
  <p>I don't have control over the parameters coming in. I only have control over the function. My question is about overriding the default param mapping of setting the url params to dict{str:str} type. This can be done in the requests module and flask. Something like request.args.getlist('param')</p>