1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-client/minimal-http-client-multi
Andy Green 2a9b6f54c6 client: h2
This adds h2 http support for the client api.

The public client api requires no changes, it will detect by
ALPN if the server can handle http/2, if so, it will use it.

Multiple client connections using the lws api will be mapped on
to the same single http/2 + tls socket using http/2 streams
that are serviced simultaneously where possible.
2018-04-06 10:38:03 +08:00
..
CMakeLists.txt minimal: client multi 2018-04-06 10:38:03 +08:00
minimal-http-client-multi.c client: h2 2018-04-06 10:38:03 +08:00
README.md minimal: client multi 2018-04-06 10:38:03 +08:00
warmcat.com.cer minimal: client multi 2018-04-06 10:38:03 +08:00

lws minimal http client multi

build

 $ cmake . && make

usage

The application goes to https://warmcat.com and receives the page data same as minimal http client.

However it does it for 8 client connections concurrently.