PUT: Add initial support #63
Loading…
Reference in a new issue
No description provided.
Delete branch "(deleted):feat/put/add-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Initial implementation. Not thoroughly tested yet.Fixes: #62
If we’re going to add PUT support, we might as well use the appropriate response codes (so it returns 201 for newly created files and 200 for existing files, each with the
Location
header field). Those can be the same for POST requests.There must also be a way to specify any additional parameters using header fields (e.g.
X-Expires
).I want to support DELETE as well, which I plan to do with a random key that is attached to the response headers for the initial upload. That functionality should be available for the POST interface as well.
I will implement deletion support separately from this PR.
@ -79,3 +79,64 @@ def test_client(client):
rv = client.get(p)
assert rv.status_code == code
def test_client_put(client):
There shouldn’t be so much duplication here.
File deletion is implemented now.