Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
151 stars 63 forks source link

HTTP Request/Response headers should be multidict #87

Closed chiwanpark closed 2 years ago

chiwanpark commented 3 years ago

Currently, all headers in request and response is dict. However, it should be multidict because there can be multiple items with the same key in HTTP headers. (i.e. multiple Set-Cookie headers to store multiple cookies)

The werkzeug implementation is based on custom implemented multidict.

https://github.com/Azure/azure-functions-python-library/blob/3e76b293505f037dba0bd42ae19688f4fe992c67/azure/functions/_thirdparty/werkzeug/datastructures.py#L928-L930

Ousret commented 3 years ago

Hi,

There might be a better option than multi-dict. https://github.com/Ousret/kiss-headers

YunchuWang commented 2 years ago

released in 4.9.1, please upgrade to latest v4 runtime to see the change