<div dir="ltr">Hi All,<div><br><div>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).</div>
<div><br></div><div>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).</div>
<div><br></div><div>I want to know is there is a specific design decision behind this.</div><div><div><br></div>-- <br><div dir="ltr"><pre>    .- <O> -.        .-====-.      ,-------.      .-=<>=-.
   /_-\'''/-_\      / / '' \ \     |,-----.|     /__----__\
  |/  o) (o  \|    | | ')(' | |   /,'-----'.\   |/ (')(') \|
   \   ._.   /      \ \    / /   {_/(') (')\_}   \   __   /
   ,>-_,,,_-<.       >'=jf='<     `.   _   .'    ,'--__--'.
 /      .      \    /        \     /'-___-'\    /    :|    \
(_)     .     (_)  /          \   /         \  (_)   :|   (_)
 \_-----'____--/  (_)        (_) (_)_______(_)   |___:|____|
  \___________/     |________|     \_______/     |_________|</pre><pre><br></pre><pre>Thanks and Regards</pre><pre>Ashish Chandra</pre><pre>Openstack Developer, Cloud Engineering</pre><pre>Reliance Jio</pre></div>
</div></div></div>