Skip to content

Add content-specific fetch variants. #1125

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

Merged
merged 1 commit into from
Aug 20, 2025
Merged

Add content-specific fetch variants. #1125

merged 1 commit into from
Aug 20, 2025

Conversation

dmjio
Copy link
Owner

@dmjio dmjio commented Aug 20, 2025

Instead of a single fetch, add small utility functions for web requests. Flesh-out on an as-needed basis.

In step with #1124 and #1123, this adds utility functions, matching GET, POST, PUT verbs with content types text, json, arrayBuffer and blob data.

@dmjio dmjio force-pushed the fetch-content-specific branch from fff9bee to 2b4c203 Compare August 20, 2025 20:14
@dmjio
Copy link
Owner Author

dmjio commented Aug 20, 2025

We still need to add support for more content types like FormData, URLSearchParams, DataView, File, etc.

@dmjio dmjio force-pushed the fetch-content-specific branch from 2b4c203 to 19b580b Compare August 20, 2025 20:22
Instead of a single `fetch`, add small utility functions for web
requests. Flesh-out on an as-needed basis.

In step with #1124 and
#1123, this adds utility functions
for GET, POST, PUT, for the content types text, json, arrayBuffer and
blob data.
@dmjio dmjio force-pushed the fetch-content-specific branch from 19b580b to 92e0ea0 Compare August 20, 2025 20:23
@dmjio dmjio merged commit cd98dc5 into master Aug 20, 2025
2 checks passed
@dmjio dmjio deleted the fetch-content-specific branch August 20, 2025 20:39
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