aboutsummaryrefslogtreecommitdiffstats
path: root/docs/pathod/library.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pathod/library.rst')
-rw-r--r--docs/pathod/library.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/pathod/library.rst b/docs/pathod/library.rst
new file mode 100644
index 00000000..b055d089
--- /dev/null
+++ b/docs/pathod/library.rst
@@ -0,0 +1,14 @@
+.. _library:
+
+pathod library
+==============
+
+Behind the pathod and pathoc command-line tools lurks the **pathod** library, a
+powerful way to manipulate and serve HTTP requests and responses from code. The
+canonical documentation for the library is in the code, and can be accessed
+using pydoc.
+
+
+.. literalinclude:: ../../examples/pathod/libpathod_pathoc.py
+ :caption: examples/pathod/libpathod_pathoc.py
+ :language: python