Closed Aubermean closed 11 months ago
thx for the report. that's actually a bug, that example should be supported. I noticed it last week as well, planning to fix it before next minor release.
In the end it wasn't a bug, but a doc error, like you hinted. the * is not required:
requests = [
["GET", "https://nghttp2.org/httpbin/get"],
["POST", "https://nghttp2.org/httpbin/post", { body: "bla" }]
]
responses = HTTPX.request(requests)
Updated the docs already.
https://honeyryderchuck.gitlab.io/httpx/wiki/Make-Requests