Skip to content

refactor!: Replace HttpxHttpClient with ImpitHttpClient as default HTTP client#1307

Merged
vdusek merged 10 commits into
apify:masterfrom
Mantisus:impit-main-client
Jul 25, 2025
Merged

refactor!: Replace HttpxHttpClient with ImpitHttpClient as default HTTP client#1307
vdusek merged 10 commits into
apify:masterfrom
Mantisus:impit-main-client

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator

Description

  • Replace HttpxHttpClient with ImpitHttpClient as default HTTP client

Issues

@Mantisus Mantisus marked this pull request as draft July 15, 2025 16:14
@Mantisus

Copy link
Copy Markdown
Collaborator Author

The cookie issue should be resolved in the next impit release - apify/impit#213

@Mantisus Mantisus self-assigned this Jul 15, 2025
@Mantisus Mantisus marked this pull request as ready for review July 23, 2025 16:25

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few comments 🙂.

Also, what now - are we gonna switch from httpx to impit in Apify Python Client? This will result in fewer dependencies in the SDK...

  • SDK -> [Crawlee, Client]
  • Crawlee -> Impit
  • Client -> Impit

(No HTTPX in the minimal instalation.)

Comment thread pyproject.toml
Comment thread docs/guides/http_clients.mdx Outdated
Comment thread docs/guides/http_clients.mdx
@Mantisus

Copy link
Copy Markdown
Collaborator Author

Also, what now - are we gonna switch from httpx to impit in Apify Python Client? This will result in fewer dependencies in the SDK...

That makes sense. But I've now checked the client code. Before replacing httpx, we need to update the tests because we won't be able to use respx with impit

@Mantisus Mantisus requested a review from vdusek July 25, 2025 12:01

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@vdusek vdusek merged commit c803a97 into apify:master Jul 25, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate impit as HTTP client

3 participants