readme improvements

master
Ondřej Hruška 5 years ago
parent 6435a0a372
commit e5dc7cfe0c
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 8
      README.md

@ -52,7 +52,7 @@ $ curl -X POST --data-binary @RICKROLL.txt 0.0.0.0:7745 -i -H 'Content-Type: app
### Expiration time ### Expiration time
To customize the expiration time, use the header `X-Expire: <seconds>`, or a GET argument `?expire=<seconds>` e.g. To customize the expiration time, use the header `X-Expire: <secs>`, or a URL parameter `?expire=<secs>` e.g.
``` ```
$ curl -X POST --data-binary @RICKROLL.txt 0.0.0.0:7745 -i -H 'X-Expire: 60' $ curl -X POST --data-binary @RICKROLL.txt 0.0.0.0:7745 -i -H 'X-Expire: 60'
@ -65,11 +65,11 @@ Send the token as the `X-Secret` header, or GET argument `?secret=....`
File is updated by sending a `PUT` request to the file's URL. File is updated by sending a `PUT` request to the file's URL.
The `PUT` request can change file expiration (`X-Expire: <secs>` or GET arg `expire`), The `PUT` request can change file expiration (`X-Expire: <secs>` or a URL parameter `?expire=<secs>`),
update its `Content-Type`, or replace its content. update its `Content-Type` (by sending the header), or replace its content.
Note that sending `PUT` with empty body will *not* clear the file, in that case the file content is Note that sending `PUT` with empty body will *not* clear the file, in that case the file content is
not changed at all. This can be used to extend file's expiration without changing it in any other way not changed at all. This can be used to extend a file's expiration without changing it in any other way
(by sending the `X-Expire` header). (by sending the `X-Expire` header).
## Deleting a file ## Deleting a file

Loading…
Cancel
Save