repowiserepowise
Sign in
encode/httpx
OverviewDocsArchitectureKnowledge GraphFilesCode HealthSecurityRefactoring

People & History

CommitsContributorsDecisions
Chat
Stats
repowiserepowise
ExplorePricingDocs
Sign in
repowiseencode/httpx
HT
HT

encode / httpx

A next generation HTTP client for Python. πŸ¦‹

Pythonβ˜… 15,527
Use in your agentAsk this codebase

github.com/encode/httpxΒ·Indexed at b5addb6Β·5d agoΒ·Up to date with upstream

About this codebase

HTTPX is a Python HTTP client that takes your request inputs (methods, URLs, headers, bodies, auth, and timeout/proxy configuration), runs them through its request/transport pipeline, and produces structured responses (including status codes, headers, cookies, streams, and raised exceptions) via synchronous and asynchronous entry points like `httpx/init.py` and the transports in `httpx/_transports/base.py` and `httpx/_transports/asgi.py`/`httpx/_transports/wsgi.py`. It’s used by application developers and tooling authors who want an ergonomic, `requests`-style interface while supporting richer behaviors such as pluggable transports, typed request/response models, and multiple execution contexts (including ASGI/WSGI integration).

Written by gpt-5.4-nano from the index

98 files and 1,245 symbols in 2 modules, written in Python.

Start reading

  • Knowledge graph98 files and how they depend on each other.β†’
  • Use multipart instead of deprecated cgi module in multipart testsDecisionProposed decision, from a pull request.β†’

Code health

6.9out of 10Fair

This codebase scores 6.9 out of 10 for code health, which we rate fair. It also scores maintainability 7.5 and static performance 9.9 out of 10. The three are scored separately and never blended into one number.

Full health report β†’

Do next

1 thing worth doing in the week to Feb 23, the last indexed commit, 1 of them now.

Now

  • High

    Start breaking up urlparse (CCN 42, 81 lines): first lift lines 231-264 into a helper

    httpx/_urlparse.py:231

    urlparse has many independent paths through it, and part of it is duplicated, so splitting it also removes a copy; 2 files import it.

    gain
    +0.6 health on this file(inferred)
    health recoverable
    +0.6(inferred)
    size
    CCN 42, 81 lines, nests 3 deep
    steps
    2 (2 mechanical)
    Small effort

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says β€œunknown”.

    line coverage
    Unknown, no report
    Small effort
All actions in the Overview β†’

Use encode/httpx in your agent

Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.

https://api.repowise.dev/mcp/encode/httpx

One command, run anywhere. Adds the server to your local Claude Code config.

Docs
bash
claude mcp add --transport http repowise https://api.repowise.dev/mcp/encode/httpx \
  --header "Authorization: Bearer rw_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
The snippet shows a placeholder key. Generate one to get a copyable secret.
Sign in and create an API key to connect.Sign in

This repo is public, so anyone with a Repowise account and an API key can connect.

Try asking

  • get_overview()
  • get_answer("how is httpx put together?")
  • get_why("why is httpx structured this way?")

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.

Go deeper

  • OverviewEverything the index found, what changed this week, commits and decisions.β†’
  • DocumentationModule-by-module documentation, 135 pages, 6 written by a model.β†’
  • ArchitectureDependency graph, layers and third-party dependencies.β†’
  • Code healthEvery file's score, the findings behind it, tests and refactoring plans.β†’
  • CommitsEach commit's effect on code health, with agent provenance.β†’
  • ContributorsWho owns what, and where one person holds most of the knowledge.β†’
  • DecisionsArchitectural decisions mined from commits and pull requests.β†’
  • Ask this codebaseSign inGrounded answers over the indexed code.β†’

Maintain this repo? Claim the page

Sign in with GitHub and we check that you are an admin or maintainer of encode/httpx. Then add a badge to the README that links readers here.

Use this repo from Claude or ChatGPT

Add this URL as a custom connector and sign in with repowise when asked. No API key to copy.

https://api.repowise.dev/mcp/encode/httpx
Sign up to connect

For maintainers

Add a badge to your README

Every badge is public, cached, and updates on its own after every index. Nothing to install.

Repowise badge

Links to this page, with no score on it. Adding it also re-indexes the repo every week.

Repowise badge preview
[![repowise.dev](https://api.repowise.dev/badge/wiki/encode/httpx.svg)](https://repowise.dev/repo/encode/httpx?src=badge_wiki)

Code health badge

The repo's health score out of 10, from the latest index.

Code health badge preview
[![repowise.dev code health](https://api.repowise.dev/badge/health/encode/httpx.svg)](https://repowise.dev/repo/encode/httpx?src=badge_health)

Code health card

A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.

Code health card preview
[![repowise.dev code health](https://api.repowise.dev/badge/health/encode/httpx.svg?style=card)](https://repowise.dev/repo/encode/httpx?src=badge_card)

How encode/httpx works

A next generation HTTP client for Python. πŸ¦‹ This page is a map of the encode/httpx repository, written primarily in Python, rebuilt from the source each time it is indexed. Repowise parses every symbol, computes a dependency graph, scores per-file code health from complexity, duplication, test coverage and churn, mines git history for hotspots and ownership, and lifts the architectural decisions into documentation you can read here or query through MCP.

The codebase has 98 files and 1,245 symbols in 2 modules, led by Python. Code health is 6.9 out of 10, rated fair.

Use the links above to open each view, or connect this repository to your agent for grounded answers inside Claude, Cursor, Codex or VS Code.