Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: track podlet assets #441

Merged
merged 4 commits into from
Nov 13, 2024
Merged

feat: track podlet assets #441

merged 4 commits into from
Nov 13, 2024

Conversation

digitalsadhu
Copy link
Member

This PR adds experimental support for asset tracking for use when doing streaming responses.

The idea is that whenever .fetch or .stream is called, we add the request to our list of tracked requests and then we tick them off as we get responses from podlets. Once all requests are accounted for a given http request, the HTTPIncoming.hints object will fire a "complete" event which can be listened for in order to know when we have all podlet assets and can build and send a document head to the browser.

The underlying hints apis naming needs changing in the HTTPIncoming class since we are no longer using 103 hints.

@digitalsadhu digitalsadhu requested review from wkillerud, leftieFriele, trygve-lie, tor0405 and flatoy and removed request for wkillerud November 11, 2024 23:18
@digitalsadhu digitalsadhu changed the base branch from main to next November 13, 2024 01:40
@digitalsadhu digitalsadhu merged commit 757316f into next Nov 13, 2024
7 checks passed
@digitalsadhu digitalsadhu deleted the track_podlet_assets branch November 13, 2024 01:44
Copy link

🎉 This PR is included in version 5.3.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants