diff options
| author | 2023-03-28 10:58:08 -0400 | |
|---|---|---|
| committer | 2023-03-28 10:58:08 -0400 | |
| commit | bb46dd1fe547cfd72d0401871e83797a36abf058 (patch) | |
| tree | 07c55712a75e77fadbcf2acfd288b92fe2110424 | |
| parent | meta: update readme to current state of the project (diff) | |
meta: readme indentationv1.0.0
I really should fix my markdown handling
it should know to use janet formatting inside ```janet
| -rw-r--r-- | README.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -22,7 +22,7 @@ You can add it to your `project.janet` dependency list like so: :name "my-project" :dependencies [{:url "https://github.com/cosmictoast/jurl.git" - :tag "v1.0.0"}] + :tag "v1.0.0"}] ``` This wraps around libcurl, and as such needs libcurl (library and headers for building) installed. @@ -61,20 +61,20 @@ Here are a few basic examples. # equivalent to the previous example ((->> "https://pie.dev/post" (http :post) - (body "my body") - (headers {:content-type "text/plain"}))) + (body "my body") + (headers {:content-type "text/plain"}))) ``` ```janet # example of preparing and modifying a request (def req (->> "https://pie.dev/post" (http :post) - (body "my body") - (headers {:content-type "application/octet-stream"}))) + (body "my body") + (headers {:content-type "application/octet-stream"}))) # oops I want it to be application/json (def req2 (->> req (headers {:content-type "application/json" - :custom-header "custom-value"}))) + :custom-header "custom-value"}))) # you can still use the old prepared request (req) # => {:body ...} # actually, in the end, I want text/plain |
