There are examples in swift.common.middleware of doing this.
If you want to try changing the metadata on the way out you can look at:
https://github.com/openstack/swift/blob/master/swift/common/middleware/staticweb.py#L367-L384
it makes use of the WSGIContext class which allows you to make a
Hello list,
I am new to OpenStack development, and trying to implement a simple Swift
middleware.
I was able to successfully manipulate a PUT request for an object,
processing the data that was uploaded by the request and storing some
information in the object metadata.
But now I am struggling
2 matches
Mail list logo