2018-11-22 15:23:44 +01:00
|
|
|
Kore python async/await examples.
|
|
|
|
|
2019-04-24 00:10:47 +02:00
|
|
|
This example also shows off the asynchronous HTTP client support
|
|
|
|
and requires libcurl on your machine.
|
|
|
|
|
2021-05-02 16:25:46 +02:00
|
|
|
Requires that Kore is built with PYTHON=1 CURL=1
|
|
|
|
|
2018-11-22 15:23:44 +01:00
|
|
|
Run:
|
|
|
|
```
|
2021-05-02 16:25:46 +02:00
|
|
|
$ kore app.py
|
2018-11-22 15:23:44 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Test:
|
|
|
|
```
|
2018-11-23 22:34:09 +01:00
|
|
|
$ curl -k http://127.0.0.1:8888/queue
|
|
|
|
$ curl -k http://127.0.0.1:8888/lock
|
|
|
|
$ curl -k http://127.0.0.1:8888/proc
|
|
|
|
$ curl -k http://127.0.0.1:8888/socket
|
2019-04-24 00:10:47 +02:00
|
|
|
$ curl -k http://127.0.0.1:8888/httpclient
|
2018-11-22 15:23:44 +01:00
|
|
|
```
|