Skip to content

refactor!: move workflow HTTP contracts into graphon.http#5

Merged
WH-2099 merged 3 commits intomainfrom
add-default-httpx-client
Mar 30, 2026
Merged

refactor!: move workflow HTTP contracts into graphon.http#5
WH-2099 merged 3 commits intomainfrom
add-default-httpx-client

Conversation

@laipz8200
Copy link
Copy Markdown
Member

@laipz8200 laipz8200 commented Mar 30, 2026

Summary

  • introduce a dedicated graphon.http boundary for workflow HTTP client and response contracts
  • add the default HTTPX-backed HTTP client so HTTP client injection becomes optional for HTTP request, document extractor, file saver, and related LLM-style nodes
  • replace workflow-facing httpx.Response leakage with graphon-owned HTTP response abstractions and reuse the shared response protocol in file runtime handling
  • add focused HTTP and file-runtime tests for request normalization, retries, status handling, and default injection behavior

Breaking change:

  • integrations that implement the workflow HTTP client or file runtime HTTP response contracts must now follow the graphon-owned HTTP response abstractions instead of relying on raw httpx.Response types or previous internal module boundaries

Checklist

  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • I ran make pre before pushing this branch
  • I added or updated tests for behavior changes, or this change does not require tests
  • I updated the relevant repository documentation when needed
  • This change is focused and reviewable

@laipz8200 laipz8200 changed the title Refactor HTTP client injection and response handling refactor!: move workflow HTTP contracts into graphon.http Mar 30, 2026
Signed-off-by: -LAN- <laipz8200@outlook.com>
@laipz8200 laipz8200 marked this pull request as ready for review March 30, 2026 10:22
@laipz8200 laipz8200 marked this pull request as draft March 30, 2026 10:22
@laipz8200 laipz8200 marked this pull request as ready for review March 30, 2026 11:01
@WH-2099 WH-2099 merged commit 28aa0af into main Mar 30, 2026
5 checks passed
@WH-2099 WH-2099 deleted the add-default-httpx-client branch March 30, 2026 11:22
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.

3 participants