Skip to content

Add sync HTTP clients example - #79

Merged
hoodmane merged 2 commits into
cloudflare:mainfrom
adewale:add-sync-http-clients-example
Jun 12, 2026
Merged

Add sync HTTP clients example#79
hoodmane merged 2 commits into
cloudflare:mainfrom
adewale:add-sync-http-clients-example

Conversation

@adewale

@adewale adewale commented May 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a Python Workers example for synchronous HTTP clients that work in the runtime:

  • requests
  • urllib3
  • httpx.Client

The example includes:

  • a small Worker with / and /sync endpoints
  • README instructions
  • pytest coverage

Tests

uv run pytest tests/test_examples.py::test_16_sync_http_clients -q
uv run ruff check 16-sync-http-clients tests/test_examples.py

@dom96 dom96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@hoodmane
hoodmane merged commit f9ee5bf into cloudflare:main Jun 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants