brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
280 stars 105 forks source link

Ability to set custom headers for objectsGet #161

Open paulvictor opened 3 years ago

paulvictor commented 3 years ago

I have a specific use case where I have to fetch a specific byte range of an object. Google cloud storage provides such an API here and here by setting custom headers . How would I be able to do the same using gogol? I can construct a value of type MediaDownload ObjectsGet and use the requestClient function to get to the GClient and set custom headers, but how would I be able to send(or more specifically perform) such a modified GClient value?

Can I have some pointers on how to solve this?