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
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack