googleapis / nodejs-storage

Node.js client for Google Cloud Storage: unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.
https://cloud.google.com/storage/
Apache License 2.0
897 stars 369 forks source link

feat: Centralize Shared Headers #2314

Open danielbankhead opened 11 months ago

danielbankhead commented 11 months ago

We should centralize shared headers. This can be made cleaner post-gaxios migration.

Discussion: https://github.com/googleapis/nodejs-storage/pull/2305#discussion_r1336449564

This can also be iterated on in Node 18+ by returning a Headers object (as today headers are case-sensitive while they shouldn't be).