boto/boto — Issue #395: Need method to add default headers to all API requests.
Author: erikcw
Created: 2011-11-09 17:35:58+00:00
State: open

It would be very convenient to have a method which adds default headers to all API requests.

Maybe something like:

s3 = boto.s3_connect(....)
bucket = s3.get_bucket("....")
bucket.set_default_headers({'x-amz-request-payer': 'requester'})

This should probably be added to the other AWS services as well, since they all accept headers too.