mirror of
https://gitlab.com/vindarel/ciel.git
synced 2026-02-05 07:12:42 -08:00
README: add http code snippet
This commit is contained in:
parent
fb93b26490
commit
3ab5d608fc
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -18,6 +18,7 @@ STATUS: ~~highly~~ WIP, the API WILL change, but it is usable.
|
|||
|
||||
I am dogfooding it in public and private projects.
|
||||
|
||||
|
||||
## What is this ?
|
||||
|
||||
CIEL is a ready-to-use collection of libraries.
|
||||
|
|
@ -34,6 +35,24 @@ Questions, doubts? See the [FAQ](docs/FAQ.md).
|
|||
|
||||
NEW: we now have a Docker file.
|
||||
|
||||
```lisp
|
||||
#!/usr/bin/env ciel
|
||||
|
||||
(-> "https://fakestoreapi.com/products?limit=5"
|
||||
http:get
|
||||
json:read-json
|
||||
(elt 0)
|
||||
(access "title"))
|
||||
```
|
||||
|
||||
```bash
|
||||
$ chmodx +x getproduct.lisp
|
||||
$ time ./getproduct.lisp
|
||||
"Fjallraven - Foldsack No…ckpack, Fits 15 Laptops"
|
||||
./getproduct.lisp 0.10s user 0.02s system 24% cpu 0.466 total
|
||||
```
|
||||
|
||||
|
||||
## Rationale
|
||||
|
||||
One of our goals is to make Common Lisp useful out of the box for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue