mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 20:09:48 -05:00
docs(readme): update README.md about expiring links
This commit is contained in:
parent
13126e79ce
commit
38a0144ad7
1 changed files with 10 additions and 2 deletions
12
README.md
12
README.md
|
@ -19,7 +19,8 @@ some text
|
|||
- random file names (optional)
|
||||
- pet name (e.g. `capital-mosquito.txt`)
|
||||
- alphanumeric string (e.g. `yB84D2Dv.txt`)
|
||||
- one shot links (file _disappears_ after accessed)
|
||||
- supports expiring links
|
||||
- supports one shot links (can only be viewed once)
|
||||
- guesses MIME types
|
||||
- supports overriding and blacklisting
|
||||
- Single binary
|
||||
|
@ -53,6 +54,14 @@ $ rpaste x.txt
|
|||
$ rpaste -
|
||||
```
|
||||
|
||||
#### Expiration
|
||||
|
||||
```sh
|
||||
curl -F "file=@x.txt" -H "expire:10min" "<server_address>"
|
||||
```
|
||||
|
||||
(supported units: `ns`, `us`, `ms`, `sec`, `min`, `hours`, `days`, `weeks`, `months`, `years`)
|
||||
|
||||
#### One Shot
|
||||
|
||||
```sh
|
||||
|
@ -140,7 +149,6 @@ http {
|
|||
|
||||
### Roadmap
|
||||
|
||||
- Support setting an expiry date for uploads
|
||||
- Write a CLI tool in Rust
|
||||
|
||||
### Contributing
|
||||
|
|
Loading…
Reference in a new issue