Migrate outbound HTTP calls from Guzzle to the Http facade #104
Loading…
Reference in a new issue
No description provided.
Delete branch "use_http_facade"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces every raw
GuzzleHttp\Clientusage (Nominatim, web.archive.org, webmention fetch/discover/send, Bridgy syndication, IndieAuth client_id lookup, contact avatar/h-card fetch, profile image download, and the CloudConvert screenshot pipeline) withIlluminate\Support\Facades\Http, and enablesHttp::preventStrayRequests()globally in tests so any un-faked outbound call now fails loudly instead of silently hitting the network.The CloudConvert retry-until-finished middleware in
AppServiceProvideris replaced by a plain polling loop inSaveScreenshot, which also fixes a latent bug where the old middleware decoded a response object instead of its body. Bridgy syndication jobs keep their tries=1/no-retry semantics unchanged to avoid duplicate publishes. Guzzle's PSR-7 helpers (Header,UriResolver,Utils) stay inSendWebMentionssinceHttphas no equivalent for them.Every affected test file's Guzzle
MockHandler/HandlerStackboilerplate is replaced withHttp::fake()/Http::sequence().Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01P8j7cJhCiYDsGUgB7obKNQ
Httpfacade for requests and tests #44