httpx

Perform synchronous and asynchronous HTTP requests in Python.

2|Updated Sep 28, 2025
One-click install
npx skills add https://github.com/SlanyCukr/riot-api-project --skill httpx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: httpx
Source: https://github.com/SlanyCukr/riot-api-project/tree/main/.claude/skills/backend/httpx
Command: npx skills add https://github.com/SlanyCukr/riot-api-project --skill httpx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HTTPX helps Python developers perform HTTP requests with both sync and async APIs, simplifying modern API integration and reducing boilerplate.

Core Features & Use Cases

  • Synchronous & asynchronous APIs for Python
  • HTTP/1.1 and HTTP/2 support with connection pooling
  • Authentication options and client configuration (base_url, headers, timeouts, redirects, proxies)
  • Streaming and error handling for robust data transfer and resilience
  • Use cases include simple API calls, streaming large responses, and authenticated requests in both sync and async contexts.

Quick Start

Install httpx and run a basic GET request with httpx.get to verify the client works.

Frequently Asked Questions about httpx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make asynchronous HTTP requests in Python?

Python async HTTP clients provide both synchronous and asynchronous APIs to execute network requests. This allows you to run concurrent API calls with HTTP/2 support and configurable connection pooling across modern applications.

What is the best way to handle authentication and custom headers for API calls in Python?

The best way to handle API authentication and custom headers is using a configurable HTTP client. You define base_url, headers, and auth options once, and the client applies them consistently across all outgoing requests.

How does streaming large HTTP responses work in Python async applications?

Streaming large HTTP responses works by processing data chunks incrementally rather than loading the entire payload into memory. This ensures robust data transfer and prevents memory exhaustion during heavy network operations in Python async applications.

Do I need a specific Python HTTP library to support both HTTP/2 and proxies?

You need a Python HTTP client that explicitly supports HTTP/2 and proxy configuration to utilize these features. A unified client allows you to configure proxies, timeouts, and redirects while maintaining connections over the HTTP/2 protocol.

Why do my synchronous API requests block my Python application event loop?

Synchronous API requests block the Python application event loop because they wait for network responses sequentially. Using a unified sync/async HTTP client lets you switch to an asynchronous API to prevent blocking during network operations.