encode / uvicorn

An ASGI web server, for Python. 🦄
https://www.uvicorn.org/
BSD 3-Clause "New" or "Revised" License
8.57k stars 745 forks source link

Update scope structure in docs to match what is actually returned by the server #2073

Closed kaypee90 closed 1 year ago

kaypee90 commented 1 year ago

Summary

This PR addresses the previous discussion #2072

The documentation specifies that the scope returns headers of structure a list of lists but the actual implementation returns a list of tuples. This PR is to address that inconsistency.

Checklist

Kludex commented 1 year ago

The documentation is mentioning the request (client) sending to the server, so in any case, it's correct.

That said, to be more consistent with the rest of code examples, and the fact that we use tuples internally, I'll accept this.

Thanks @kaypee90 :)