summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-08-27 18:48:10 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-08-27 18:58:27 -0500
commit8f2b2e33b9e498d3549c443467dd1438679b8756 (patch)
treebbcf80f5faa74b96a39a2a17a30f468ac723b021 /docs
parent7bfa27e6987198be77acafb91d573f9a0acddf9f (diff)
downloadrequests-cache-8f2b2e33b9e498d3549c443467dd1438679b8756.tar.gz
Add example with URL patterns
Diffstat (limited to 'docs')
-rw-r--r--docs/examples.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/examples.md b/docs/examples.md
index 74af693..b6866bc 100644
--- a/docs/examples.md
+++ b/docs/examples.md
@@ -54,6 +54,19 @@ The following scripts can also be found in the
```
:::
+### URL patterns
+```{include} ../examples/url_patterns.py
+:start-line: 3
+:end-line: 4
+```
+
+:::{admonition} Example code
+:class: toggle
+```{literalinclude} ../examples/url_patterns.py
+:lines: 1,6-
+```
+:::
+
### Multi-threaded requests
```{include} ../examples/threads.py
:start-line: 2