diff options
| author | 2023-03-26 19:31:52 -0400 | |
|---|---|---|
| committer | 2023-03-26 19:31:52 -0400 | |
| commit | 923d60734b08b2dba0a6b5b65c57b21d72d1a584 (patch) | |
| tree | 7f812c45309858d38a003fe7783d69f443f6c618 /README.md | |
| parent | meta: add installation cmd (diff) | |
meta: readme s/\t/ /g
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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} ``` |
