[Openstack] [SWIFT]Creating a new container in Swift does first POST then PUT
Ashish Chandra
mail.ashishchandra at gmail.com
Fri Aug 1 05:34:56 UTC 2014
Hi All,
While creating a new container in Swift, it first tries to do a POST
operation thinking it is for updating the metadata, once it get 404
response(container doesnot exists) then it goes for creation of container
(PUT request).
I feel like its a two way process, making two different HTTP calls one
after the another. Instead what could have been done, we could have simply
used PUT verb after checking the parameters(header dict will be empty if a
user wants to create a container).
I want to know is there is a specific design decision behind this.
--
.- <O> -. .-====-. ,-------. .-=<>=-.
/_-\'''/-_\ / / '' \ \ |,-----.| /__----__\
|/ o) (o \| | | ')(' | | /,'-----'.\ |/ (')(') \|
\ ._. / \ \ / / {_/(') (')\_} \ __ /
,>-_,,,_-<. >'=jf='< `. _ .' ,'--__--'.
/ . \ / \ /'-___-'\ / :| \
(_) . (_) / \ / \ (_) :| (_)
\_-----'____--/ (_) (_) (_)_______(_) |___:|____|
\___________/ |________| \_______/ |_________|
Thanks and Regards
Ashish Chandra
Openstack Developer, Cloud Engineering
Reliance Jio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140801/9d79b7fb/attachment.html>
More information about the Openstack
mailing list