mirror of
https://github.com/zeroflag/fcl.git
synced 2025-01-11 20:01:10 +01:00
Update README.md
This commit is contained in:
parent
951efdb24d
commit
b323e2d543
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -417,6 +417,25 @@ Quotations combined with the collection API offers some high level control struc
|
||||||
|
|
||||||
## HTTP
|
## HTTP
|
||||||
|
|
||||||
|
There is basic support getting an url or posting a form.
|
||||||
|
|
||||||
|
```forth
|
||||||
|
http-get ( url -- response-body http-code )
|
||||||
|
http-get ( map url -- response-body http-code )
|
||||||
|
```
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```forth
|
||||||
|
'http://some.url' http-get
|
||||||
|
|
||||||
|
#[ 'year' year
|
||||||
|
'month' month
|
||||||
|
'day' day
|
||||||
|
'cost' 1234 ]#
|
||||||
|
'http://myhost.site/expense' http-post
|
||||||
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Controlling a Daikin Air Conditioner
|
### Controlling a Daikin Air Conditioner
|
||||||
|
|
Loading…
Reference in a new issue