Skip to content

Add sync HTTP clients example#79

Open
adewale wants to merge 2 commits into
cloudflare:mainfrom
adewale:add-sync-http-clients-example
Open

Add sync HTTP clients example#79
adewale wants to merge 2 commits into
cloudflare:mainfrom
adewale:add-sync-http-clients-example

Conversation

@adewale
Copy link
Copy Markdown
Contributor

@adewale adewale commented May 2, 2026

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

Copy link
Copy Markdown
Contributor

@dom96 dom96 left a comment

Choose a reason for hiding this comment

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

Nice!

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.

2 participants