Repository navigation
Add Open Graph image retrieval for 0.3 hosts - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
SsrOgImageClientto the 0.3 host API so a host-owned public endpoint can retrieve the product module's Open Graph card from sidecarPOST /v1/og. Missing cards and transport failures retain the static-image fallback.The renderer and image client share request-body and token construction. The optional endpoint participates in the render cache key. Native cURL and stream transports reject redirects, invalid responses and oversized requests/images, bound response reads, and reject truncated images. Existing hosts need no configuration changes.
Validation: 48 tests / 184 assertions pass, including real HTTP tests for both native transports, body/token forwarding, endpoint/source/module separation, limits, failures and fallbacks. Changed PHP files pass syntax checks; the new maintenance API passed supplemental PHPStan checks. Includes usage documentation and a 0.3.2 changelog entry.