Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.06k stars 473 forks source link

Allow adding custom headers in REST Resource HTTP calls #1275

Closed matteodepalo closed 9 months ago

matteodepalo commented 9 months ago

I've added a new attribute, ShopifyAPI::Rest::Base.headers, that can be used to set headers that will be sent with every request made by the resource through methods like all, delete, etc...

Description

Fixes https://github.com/Shopify/shopify-api-ruby/issues/1211

How has this been tested?

I've added an automated test for all.

Checklist: