Aiohttp: Frage: Unterschied zwischen ClientResponse.url und .real_url

Erstellt am 25. März 2019  ·  3Kommentare  ·  Quelle: aio-libs/aiohttp

Tut mir leid, dass ich _Issues_ als Q&A-Board verwendet habe, aber es gab keine Antwort auf der Mailingliste.
X-Post: https://groups.google.com/forum/#!msg/aio -libs/ibZkny12BpM/ci7sEQjlAQAJ

Meine Frage bezieht sich auf die

Was ist der Unterschied zwischen ClientResponse.url und ClientResponse.real_url ?

Ich kann keine finden.

zB habe ich versucht, diese URL zu bekommen
https://www.fsf.org/static/fsforg/rss/news.xml
die weitergeleitet wird an
https://static.fsf.org/fsforg/rss/news.xml

question

Alle 3 Kommentare

GitMate.io geht davon aus, dass

Möglicherweise verwandte Probleme sind https://github.com/aio-libs/aiohttp/issues/2992 (Frage), https://github.com/aio-libs/aiohttp/issues/1670 (ClientResponse Ergonomie), https: // https://github.com/aio-libs/aiohttp/issues/172 (Frage zu ServerHttpProtocol.closing() ) und https://github.com/aio-libs/aiohttp/issues/824 (URL mit #).

Ich hasse Bots.

Nun, wie Sie anhand des Codes sehen können, handelt es sich um den Fragmentteil:
https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client_reqrep.py#L651 -L652
https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client_reqrep.py#L668 -L674
und das ist, was über Dokumentationen sagt.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen