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

Switch to ureq, and store headers/query in a resource #36

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

laundmo
Copy link

@laundmo laundmo commented Oct 3, 2024

This PR switches the client to ureq using a AsyncComputeTaskPool to make requests non-blocking.

Its a optional follow-up to my PR:

requires bevy_tasks with multi_threaded feature, otherwise Task isn't awaitable. Not sure if this leads to duplication in the dependency tree, or if bevy_tasks from the main bevy version is re-used. Could probably work around this with come cfg() magic looking at which bevy_task feature is enabled.

other than this it also moves headers/query-params into a Resource which shares them with the AssetReaders using a Arc<RwLock<>>. This allows the user to set/clear headers/query-params.

I've tested all features locally.

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