Revision 1870855f kamaki/clients/pithos/rest_api.py
b/kamaki/clients/pithos/rest_api.py | ||
---|---|---|
59 | 59 |
|
60 | 60 |
:returns: ConnectionResponse |
61 | 61 |
""" |
62 |
self.response_headers = ['Last-Modified', ] |
|
63 |
self.response_header_prefices = ['X-Account-', ] |
|
62 | 64 |
|
63 | 65 |
self._assert_account() |
64 | 66 |
path = path4url(self.account) |
... | ... | |
110 | 112 |
:returns: ConnectionResponse |
111 | 113 |
""" |
112 | 114 |
self._assert_account() |
115 |
self.response_headers = ['Last-Modified', ] |
|
116 |
self.response_header_prefices = ['X-Account-', ] |
|
113 | 117 |
|
114 | 118 |
self.set_param('limit', limit, iff=limit) |
115 | 119 |
self.set_param('marker', marker, iff=marker) |
... | ... | |
155 | 159 |
|
156 | 160 |
:returns: ConnectionResponse |
157 | 161 |
""" |
158 |
|
|
159 | 162 |
self._assert_account() |
160 | 163 |
|
161 | 164 |
self.set_param('update', '', iff=update) |
... | ... | |
200 | 203 |
|
201 | 204 |
:returns: ConnectionResponse |
202 | 205 |
""" |
203 |
|
|
204 | 206 |
self._assert_container() |
207 |
self.response_headers = ['Last-Modified', ] |
|
208 |
self.response_header_prefices = ['X-Container-', ] |
|
205 | 209 |
|
206 | 210 |
self.set_param('until', until, iff=until) |
207 | 211 |
|
... | ... | |
268 | 272 |
""" |
269 | 273 |
|
270 | 274 |
self._assert_container() |
275 |
self.response_headers = ['Last-Modified', ] |
|
276 |
self.response_header_prefices = ['X-Container-', ] |
|
271 | 277 |
|
272 | 278 |
self.set_param('limit', limit, iff=limit) |
273 | 279 |
self.set_param('marker', marker, iff=marker) |
... | ... | |
423 | 429 |
|
424 | 430 |
:returns: ConnectionResponse |
425 | 431 |
""" |
426 |
|
|
427 | 432 |
self._assert_container() |
433 |
self.response_headers = [ |
|
434 |
'ETag', |
|
435 |
'Content-Length', |
|
436 |
'Content-Type', |
|
437 |
'Last-Modified', |
|
438 |
'Content-Encoding', |
|
439 |
'Content-Disposition', |
|
440 |
] |
|
441 |
self.response_header_prefices = ['X-Object-', ] |
|
428 | 442 |
|
429 | 443 |
self.set_param('version', version, iff=version) |
430 | 444 |
|
... | ... | |
479 | 493 |
|
480 | 494 |
:returns: ConnectionResponse |
481 | 495 |
""" |
482 |
|
|
483 | 496 |
self._assert_container() |
497 |
self.response_headers = [ |
|
498 |
'ETag', |
|
499 |
'Content-Length', |
|
500 |
'Content-Type', |
|
501 |
'Last-Modified', |
|
502 |
'Content-Encoding', |
|
503 |
'Content-Disposition', |
|
504 |
'Content-Range', |
|
505 |
] |
|
506 |
self.response_header_prefices = ['X-Object-', ] |
|
484 | 507 |
|
485 | 508 |
self.set_param('format', format, iff=format) |
486 | 509 |
self.set_param('hashmap', hashmap, iff=hashmap) |
... | ... | |
574 | 597 |
|
575 | 598 |
:returns: ConnectionResponse |
576 | 599 |
""" |
577 |
|
|
578 | 600 |
self._assert_container() |
601 |
self.response_headers = ['ETag', 'X-Object-Version'] |
|
579 | 602 |
|
580 | 603 |
self.set_param('format', format, iff=format) |
581 | 604 |
self.set_param('hashmap', hashmap, iff=hashmap) |
... | ... | |
671 | 694 |
|
672 | 695 |
:returns: ConnectionResponse |
673 | 696 |
""" |
674 |
|
|
675 | 697 |
self._assert_container() |
698 |
self.response_headers = [ |
|
699 |
'If-Match', |
|
700 |
'If-None-Match', |
|
701 |
'Destination', |
|
702 |
'Destination-Account', |
|
703 |
'Content-Type', |
|
704 |
'Content-Encoding', |
|
705 |
'Content-Disposition', |
|
706 |
'X-Source-Version', |
|
707 |
] |
|
708 |
self.response_header_prefices = ['X-Object-', ] |
|
676 | 709 |
|
677 | 710 |
self.set_param('format', format, iff=format) |
678 | 711 |
self.set_param('ignore_content_type', iff=ignore_content_type) |
... | ... | |
759 | 792 |
|
760 | 793 |
:returns: ConnectionResponse |
761 | 794 |
""" |
762 |
|
|
763 | 795 |
self._assert_container() |
796 |
self.response_headers = [ |
|
797 |
'If-Match', |
|
798 |
'If-None-Match', |
|
799 |
'Destination', |
|
800 |
'Destination-Account', |
|
801 |
'Content-Type', |
|
802 |
'Content-Encoding', |
|
803 |
'Content-Disposition', |
|
804 |
'X-Source-Version', |
|
805 |
] |
|
806 |
self.response_header_prefices = ['X-Object-', ] |
|
764 | 807 |
|
765 | 808 |
self.set_param('format', format, iff=format) |
766 | 809 |
self.set_param('ignore_content_type', iff=ignore_content_type) |
... | ... | |
858 | 901 |
|
859 | 902 |
:returns: ConnectionResponse |
860 | 903 |
""" |
861 |
|
|
862 | 904 |
self._assert_container() |
905 |
self.response_headers = ['ETag', 'X-Object-Version'] |
|
863 | 906 |
|
864 | 907 |
self.set_param('format', format, iff=format) |
865 | 908 |
self.set_param('update', '', iff=update) |
Also available in: Unified diff