gaxios icon indicating copy to clipboard operation
gaxios copied to clipboard

feat!: Headers should be `Headers`

Open danielbankhead opened this issue 4 months ago • 1 comments

Headers should be Headers

  • creates consistency throughout the libraries; no need to check properties for different casing
  • Alignment with Request#headers
  • Clients or intermediates can easily append an existing header or create it if it does exist, like so:
const headers = new Headers();

// creates, if not exist, or appends to an existing header
headers.append('x-goog-api-client', 'abc');
  • Fixes: #262

🦕

danielbankhead avatar Oct 09 '24 20:10 danielbankhead