Debug Slow HTTP Requests in Python With httptap
1:18

Debug Slow HTTP Requests in Python With httptap

Real Python 18.05.2026 1 070 просмотров 56 лайков

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
Download your free Python Cheat Sheet here: https://realpython.com/cheatsheet Free Python Skill Test with instant level + learning plan: https://realpython.com/skill-test Want to learn faster? Become a Python Expert with unlimited access to 5,000+ tutorials, videos, and exercises: https://realpython.com/start Listen to the full episode at https://realpython.com/podcasts/rpp/280 or wherever you get podcasts -- with Chris Trudeau (hosted by Chris Bailey). 🐍 Become a Python expert with real-world tutorials, on-demand courses, interactive quizzes, and 24/7 access to a community of experts at https://realpython.com ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰ 🐍 Start Here → https://realpython.com/start 🗺️ Guided Learning Paths → https://realpython.com/learning-paths 🎧 Real Python Podcast → https://realpython.com/podcast 📚 Python Books → https://realpython.com/books 📖 Python Reference → https://realpython.com/ref 🧑‍💻 Quizzes & Exercises → https://realpython.com/quizzes 🎓 Live Courses: https://realpython.com/live ⭐️ Reviews & Learner Stories: https://realpython.com/learner-stories ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰

Оглавление (1 сегментов)

Segment 1 (00:00 - 01:00)

HTTP tap, what it does is gives you the breakdown of the different phases for a particular HTTP call. For example, you might call HTTP tap and give it the URL of Real Python's homepage. The tool then connects to the page and gives you a bunch of info about the page including the IP address, what version of HTTP got used, what version of TLS got used, when the certificate associated with the page expires, how big the page was, where it got served from, and then below that information it prints an ASCII performance graph showing how long each phase of the connection took. When I ran it on Real Python, 90% of the time was spent on the DNS lookup, which would be an issue with my machine, and then there was a bit of negotiation for the TLS, then there was the wait phase, which would be the server doing something, and finally the transfer. Supports all the usual HTTP methods, so you can muck around with your REST servers. It's IP version 6 aware and is capable of exporting all that stuff I just talked about as a JSON dictionary. If you're finding your server is slow and you want to figure out what it's causing it, this can be useful. If you're getting a lot of redirects, this also breaks that down for you as well. You can also invoke the library from code, which gives you the ability to use a custom DNS resolver or TLS expector as well.

Другие видео автора — Real Python

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник