aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-03-26 19:31:52 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-03-26 19:31:52 -0400
commit923d60734b08b2dba0a6b5b65c57b21d72d1a584 (patch)
tree7f812c45309858d38a003fe7783d69f443f6c618 /README.md
parentmeta: add installation cmd (diff)
meta: readme s/\t/ /g
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index ffe2bc1..fd33bda 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Get with a query:
```janet
(request {:url "https://pie.dev/get"
:query {:a "b"
- :c "d"}})
+ :c "d"}})
# -> {:body @"..." :error :ok :handle <jurl> :status 200}
```
@@ -41,16 +41,16 @@ A post with multipart mime (including file uploads):
```janet
(request {:url "https://pie.dev/post"
:body [{:name "field name"
- :filename "remote.file" # this is what makes it a file upload
- :data [:file "local.file"]}]})
+ :filename "remote.file" # this is what makes it a file upload
+ :data [:file "local.file"]}]})
```
A post with json:
```janet
(request {:url "https://pie.dev/post"
:body (json/encode {:a "b"
- :c "d"})
- :headers {:content-type "application/json"})
+ :c "d"})
+ :headers {:content-type "application/json"})
# -> {:body @"..." :error :ok :handle <jurl> :status 200}
```