summaryrefslogtreecommitdiff
path: root/docs/sample_data
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-06-10 16:32:00 -0500
committerJordan Cook <jordan.cook@pioneer.com>2022-06-10 16:56:23 -0500
commitb812445f77a34d5802c142cb3880463f26ce8e9b (patch)
tree7200860b18f3c031cf26ba45407e4f90ed3de895 /docs/sample_data
parent3854c9ebaf268bce2a6f2339c0fdb088f8c6a686 (diff)
downloadrequests-cache-b812445f77a34d5802c142cb3880463f26ce8e9b.tar.gz
Update docs and changelog
Diffstat (limited to 'docs/sample_data')
-rw-r--r--docs/sample_data/sample_response_binary.json (renamed from docs/sample_data/sample_response.json)0
-rw-r--r--docs/sample_data/sample_response_binary.yaml (renamed from docs/sample_data/sample_response.yaml)0
-rw-r--r--docs/sample_data/sample_response_json.json56
-rw-r--r--docs/sample_data/sample_response_json.yaml42
4 files changed, 98 insertions, 0 deletions
diff --git a/docs/sample_data/sample_response.json b/docs/sample_data/sample_response_binary.json
index 4b60354..4b60354 100644
--- a/docs/sample_data/sample_response.json
+++ b/docs/sample_data/sample_response_binary.json
diff --git a/docs/sample_data/sample_response.yaml b/docs/sample_data/sample_response_binary.yaml
index 07bc7ca..07bc7ca 100644
--- a/docs/sample_data/sample_response.yaml
+++ b/docs/sample_data/sample_response_binary.yaml
diff --git a/docs/sample_data/sample_response_json.json b/docs/sample_data/sample_response_json.json
new file mode 100644
index 0000000..45ea4e3
--- /dev/null
+++ b/docs/sample_data/sample_response_json.json
@@ -0,0 +1,56 @@
+{
+ "url": "https://httpbin.org/json",
+ "status_code": 200,
+ "reason": "OK",
+ "_decoded_content": {
+ "slideshow": {
+ "author": "Yours Truly",
+ "date": "date of publication",
+ "slides": [
+ {
+ "title": "Wake up to WonderWidgets!",
+ "type": "all"
+ },
+ {
+ "items": [
+ "Why <em>WonderWidgets<\/em> are great",
+ "Who <em>buys<\/em> WonderWidgets"
+ ],
+ "title": "Overview",
+ "type": "all"
+ }
+ ],
+ "title": "Sample Slide Show"
+ }
+ },
+ "cache_key": "4dc151d95200ec91fa77021989f5194e9be47e87f8f228306f3a8d5434b9e547",
+ "created_at": "2021-07-21T22:34:50.343095",
+ "elapsed": 0.242198,
+ "encoding": "utf-8",
+ "headers": {
+ "Date": "Wed, 21 Jul 2021 22:34:50 GMT",
+ "Content-Type": "application/json",
+ "Content-Length": "429",
+ "Connection": "keep-alive",
+ "Server": "gunicorn/19.9.0",
+ "Access-Control-Allow-Origin": "*",
+ "Access-Control-Allow-Credentials": "true"
+ },
+ "request": {
+ "body": "PH%2y",
+ "headers": {
+ "User-Agent": "python-requests/2.26.0",
+ "Accept-Encoding": "gzip, deflate",
+ "Accept": "*/*",
+ "Connection": "keep-alive"
+ },
+ "method": "GET",
+ "url": "https://httpbin.org/json"
+ },
+ "raw": {
+ "decode_content": false,
+ "reason": "OK",
+ "status": 200,
+ "version": 11
+ }
+}
diff --git a/docs/sample_data/sample_response_json.yaml b/docs/sample_data/sample_response_json.yaml
new file mode 100644
index 0000000..4949e31
--- /dev/null
+++ b/docs/sample_data/sample_response_json.yaml
@@ -0,0 +1,42 @@
+url: https://httpbin.org/json
+status_code: 200
+reason: OK
+_decoded_content:
+ slideshow:
+ author: Yours Truly
+ date: date of publication
+ slides:
+ - title: Wake up to WonderWidgets!
+ type: all
+ - items:
+ - Why <em>WonderWidgets</em> are great
+ - Who <em>buys</em> WonderWidgets
+ title: Overview
+ type: all
+ title: Sample Slide Show
+created_at: '2021-07-21T22:32:17.592974'
+elapsed: 0.187586
+encoding: utf-8
+headers:
+ Access-Control-Allow-Credentials: 'true'
+ Access-Control-Allow-Origin: '*'
+ Connection: keep-alive
+ Content-Length: '308'
+ Content-Type: application/json
+ Date: Wed, 21 Jul 2021 22:32:17 GMT
+ Server: gunicorn/19.9.0
+request:
+ method: GET
+ url: https://httpbin.org/json
+ body: !!binary |
+ Tm9uZQ==
+ headers:
+ Accept: '*/*'
+ Accept-Encoding: gzip, deflate
+ Connection: keep-alive
+ User-Agent: python-requests/2.26.0
+raw:
+ decode_content: false
+ reason: OK
+ status: 200
+ version: 11