docs: add guides and summary

This commit is contained in:
Tiara Rodney 2022-04-02 03:04:28 +02:00
parent 6b96bf8efb
commit 0b16acf68c
12 changed files with 146 additions and 70 deletions

View file

@ -1,17 +1,16 @@
Backend
=======
Binary Pastes
-------------
The backend can be configured within the `[backend]` section of the configuration file.
httpaste supports encoding. Encode your data as Base64, Base85, Base32, or
Base16 and provide an encoding specifier.
SQLite
------
.. code-block:: shell
.. autoclass:: httpaste.backend.sqlite.Parameters
:members:
$ cat my.pdf | base64 | curl "http://localhost:8080/paste/public?encoding=base64"
http://localhost:8080/paste/public/5Rt3E3n6
Filesystem
----------
When getting pastes, you may provide a MIME type, if a client deduces the encoding by looking at the HTTP 'Content-Type' header.
$ curl "https://p.victoryk.it/paste/public/5Rt3E3n6?mime=application/pdf"
.. autoclass:: httpaste.backend.file.Parameters
:members: