Skip to content

feat: Use static raw Guzzle client for Inertia SSR dispatch instead of Http facade#367

Merged
binaryfire merged 2 commits into0.4from
feat/inertia
Apr 13, 2026
Merged

feat: Use static raw Guzzle client for Inertia SSR dispatch instead of Http facade#367
binaryfire merged 2 commits into0.4from
feat/inertia

Conversation

@binaryfire
Copy link
Copy Markdown
Collaborator

Use static raw Guzzle client for SSR dispatch instead of Http facade

Replaces per-request PendingRequest/HandlerStack/Client allocations with
a single worker-lifetime Guzzle client. Eliminates object churn on the
hot SSR dispatch path and enables curl handle reuse (TCP connection reuse
to the SSR sidecar). Client uses cookies=false, http_errors=false with
configured timeouts. Includes useTestingClient() for test injection and
circuit breaker/flushState support.
Replaces Http::fake() with raw Guzzle MockHandler to match the new
static SSR client. Adds client reuse, cookie safety, timeout config,
and memoization tests. Verifies hot URL dispatch via MockHandler
request inspection.
@binaryfire binaryfire merged commit a492712 into 0.4 Apr 13, 2026
32 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.

1 participant