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: fetch-Compatible API #680

Merged
merged 1 commit into from
Jan 27, 2025
Merged

feat: fetch-Compatible API #680

merged 1 commit into from
Jan 27, 2025

Conversation

d-goog
Copy link
Contributor

@d-goog d-goog commented Jan 25, 2025

This will greatly improve ergonomics for customers and our downstream libraries. Notably:

  • Gaxios can be a drop-in replacement for libraries requiring fetch-API compliance
  • By offering a fetch-compliant API in Gaxios we can utilize it within our own libraries, such as google-auth-library, and in turn expose a fetch-compatible API for customers downstream
    • Additionally, this would allow google-auth-library to streamline request handling by removing the Transporter concept altogether.

Here's an example for customers wanting this functionality:

🦕

@d-goog d-goog requested a review from a team as a code owner January 25, 2025 00:34
Copy link

Warning: This pull request is touching the following templated files:

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jan 25, 2025
src/common.ts Show resolved Hide resolved
@d-goog d-goog merged commit d3cb530 into main Jan 27, 2025
13 checks passed
@d-goog d-goog deleted the fetch-interface branch January 27, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants