kore/examples
Joris Vink 2c88bc6120 Add asynchronous libcurl support.
This commit adds the CURL=1 build option. When enabled allows
you to schedule CURL easy handles onto the Kore event loop.

It also adds an easy to use HTTP client API that abstracts away the
settings required from libcurl to make HTTP requests.

Tied together with HTTP request state machines this means you can
write fully asynchronous HTTP client requests in an easy way.

Additionally this exposes that API to the Python code as well
allowing you do to things like:

	client = kore.httpclient("https://kore.io")
	status, body = await client.get()

Introduces 2 configuration options:
	- curl_recv_max
		Max incoming bytes for a response.

	- curl_timeout
		Timeout in seconds before a transfer is cancelled.

This API also allows you to take the CURL easy handle and send emails
with it, run FTP, etc. All asynchronously.
2019-04-24 00:15:17 +02:00
..
async-curl Add asynchronous libcurl support. 2019-04-24 00:15:17 +02:00
cookies change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
cpp change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
generic change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
headers Rework HTTP and worker processes. 2018-02-14 13:48:49 +01:00
integers remove unneeded include. 2018-05-04 15:56:56 +02:00
json_yajl 2018 2018-01-20 22:51:06 +01:00
jsonrpc change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
memtag 2018 2018-01-20 22:51:06 +01:00
messaging Allow on-the-fly reloading of certificates/keys. 2018-07-11 09:44:29 +02:00
nohttp Changes to the event loop inside of Kore. 2018-10-09 19:34:40 +02:00
parameters Allow param blocks to be marked as "querystring" 2018-01-16 18:47:50 +01:00
pgsql 2018 2018-01-20 22:51:06 +01:00
pgsql-sync change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
pipe_task change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
python-async Add asynchronous libcurl support. 2019-04-24 00:15:17 +02:00
python-echo Rework pysocket async/await. 2019-03-13 11:07:15 +01:00
python-pgsql 2018 2018-01-20 22:51:06 +01:00
sse make sse example great again 2018-11-29 21:01:08 +01:00
tasks add /usr/local/include 2018-11-29 21:13:19 +01:00
tls-proxy Changes to the event loop inside of Kore. 2018-10-09 19:34:40 +02:00
upload 2018 2018-01-20 22:51:06 +01:00
video_stream more intmax_t 2018-11-29 21:25:20 +01:00
websocket change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
Makefile use releng things 2018-11-29 21:13:43 +01:00