Andy Green
446c790525
h2: use vhost headers with tolower adaptation
...
h2 was not applying vhost headers, make it do so.
Also adapt any header names to lower-case as required by h2.
2018-08-24 16:08:18 +08:00
Andy Green
5260a49e3b
libwebsockets.h: clean out some boilerplate better put in core/private.h
...
https://github.com/warmcat/libwebsockets/issues/1370
2018-08-16 19:11:54 +08:00
Andy Green
f256fdea05
LWS_ILLEGAL_HTTP_CONTENT_LEN implies connection:close
...
If no content-length is coming, we just can't do
http/1.1 keep-alive.
2018-06-16 13:49:39 +08:00
Andy Green
de064fd65a
refactor: core code in lib/core and private-libwebsockets.h to core/private.h
...
This commit is coverity-clean as tested
cmake .. -DLWS_WITH_MINIMAL_EXAMPLES=1 -DLWS_WITHOUT_EXTENSIONS=1 -DLWS_WITH_ACME=1 -DLWS_WITH_LWSWS=1 -DLWS_WITH_LIBUV=1 -DLWS_WITH_HTTP2=1 -DLWS_WITHOUT_CLIENT=0 -DLWS_WITHOUT_SERVER=0 -DLWS_UNIX_SOCK=1 -DLWS_WITH_TLS=0 -DLWS_WITH_MBEDTLS=0 -DLWS_WITH_CGI=1 -DCMAKE_BUILD_TYPE=DEBUG -DLWS_WITH_GENERIC_SESSIONS=1 -DLWS_WITH_RANGES=1 -DLWS_ROLE_WS=1 -DLWS_MAX_SMP=16 -DLWS_ROLE_H1=1 -DLWS_WITH_WOLFSSL=0 -DLWS_WITH_LIBEV=0 -DLWS_WITH_LIBEVENT=1
2018-05-03 10:49:36 +08:00
Andy Green
ac6c48d98f
refactor: most preparation for -DLWS_ROLE_H1=0
2018-04-27 19:16:50 +08:00
Andy Green
16a907180c
refactor: move all ah and http specific vars to http private and conditional inclusion from there
2018-04-27 15:20:56 +08:00
Andy Green
658c752998
lws_add_http_common_headers: provide WSI_TOKEN_HTTP_CONTENT_TYPE helper
2018-04-20 07:13:05 +08:00
Andy Green
8829c2f365
selftests
...
This converts several of the selftests to return a status in their exit code
about whether they 'worked'.
A small bash script framework is added, with a selftest.sh in the mininmal
example dirs that support it, and a ./minimal-examples/selftests.sh script
that can be run from the build dir with no args that discovers and runs all
the selftest.sh scripts underneath.
That is also integrated into travis and the enabled tests must pass now for
travis to pass. Travis does not have a modern libuv so it can't run a
couple of tests which are nulled out if it sees it's running in travis env.
2018-04-19 16:16:48 +08:00
Andy Green
126be3ccf3
refactor role ops
...
This only refactors internal architecture and representations, the user
api is unaffected.
2018-04-11 13:39:42 +08:00