ncw / swift

Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang)
MIT License
313 stars 107 forks source link

X-Newest header not supported in HEAD request #100

Open majewsky opened 6 years ago

majewsky commented 6 years ago

Object does not provide for a way to set the X-Newest: true header. Refer to the API reference for details.

I'm aware that I can give extra headers to ObjectOpen, ObjectGet etc., but I'm dealing with large objects and therefore cannot afford downloading the entire file.

ncw commented 6 years ago

Perhaps factor Object into ObjectHead which does take some headers?

Would you like to send a PR for this?