1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Andy Green ac1229f2f7 minimal-http-client-multi: add POST
This adds support for POST in both h1 and h2 queues / stream binding.

The previous queueing tried to keep the "leader" wsi who made the
actual connection around and have it act on the transaction queue
tail if it had done its own thing.

This refactors it so instead, who is the "leader" moves down the
queue and the queued guys inherit the fd, SSL * and queue from the
old leader as they take over.

This lets them operate in their own wsi identity directly and gets
rid of all the "effective wsi" checks, which was applied incompletely
and getting out of hand considering the separate lws_mux checks for
h2 and other muxed protocols alongside it.

This change also allows one wsi at a time to own the transaction for
POST.  --post is added as an option to lws-minimal-http-client-multi
and 6 extra selftests with POST on h1/h2, pipelined or not and
staggered or not are added to the CI.
2020-02-21 17:32:41 +00:00
..
abstract cleaning 2020-01-05 22:17:58 +00:00
core event lib: update http client multi to work with it and clean destroy flow 2020-02-04 14:16:18 +00:00
core-net minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
event-libs event lib: update http client multi to work with it and clean destroy flow 2020-02-04 14:16:18 +00:00
jose lws_get_random: change length to size_t for coverity 2020-01-11 07:58:37 +00:00
misc lwsac: add lwsac_extend api 2020-02-21 17:32:41 +00:00
plat event lib: update http client multi to work with it and clean destroy flow 2020-02-04 14:16:18 +00:00
roles minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
system COV265479: asyn dns check retrun from retry api 2020-02-04 14:16:18 +00:00
tls minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries