mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-22 04:19:47 -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)
|
- random file names (optional)
|
||||||
- pet name (e.g. `capital-mosquito.txt`)
|
- pet name (e.g. `capital-mosquito.txt`)
|
||||||
- alphanumeric string (e.g. `yB84D2Dv.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
|
- guesses MIME types
|
||||||
- supports overriding and blacklisting
|
- supports overriding and blacklisting
|
||||||
- Single binary
|
- Single binary
|
||||||
|
@ -53,6 +54,14 @@ $ rpaste x.txt
|
||||||
$ rpaste -
|
$ 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
|
#### One Shot
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -140,7 +149,6 @@ http {
|
||||||
|
|
||||||
### Roadmap
|
### Roadmap
|
||||||
|
|
||||||
- Support setting an expiry date for uploads
|
|
||||||
- Write a CLI tool in Rust
|
- Write a CLI tool in Rust
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
Loading…
Reference in a new issue