Commit Graph

889 Commits

Author SHA1 Message Date
Alex Hultman 7eea6f69ee Add initial smoke test for Deno, Node.js, Bun and similar "browsers" 2022-11-01 05:29:13 +01:00
Alex Hultman c1fb1d5070 Fix header parsing 2022-11-01 00:38:51 +01:00
Alex Hultman ea7ac520f3 Fix bloom filter warnings, simplify 2022-10-31 22:47:36 +01:00
Alex Hultman 399204dbae Reject chunk size overflow, non-hex chunk size 2022-10-31 18:58:01 +01:00
Alex Hultman 3cfad3584b Take a-f, A-F 2022-10-31 18:10:16 +01:00
Alex Hultman 75aece1e55 Fix proxy build 2022-10-31 17:50:01 +01:00
Alex Hultman 7af11b1942 Pass router test with upper cased methods 2022-10-31 03:57:34 +01:00
Alex Hultman 2b850f76d3 Case sensitive method, trim trailing whitespace (correctly), host header may be empty 2022-10-31 03:47:08 +01:00
Alex Hultman cca4610d5d Make it actually work 2022-10-30 21:36:34 +01:00
uNetworkingAB d76e2362d8 Make that correctilier 2022-10-30 21:17:43 +01:00
uNetworkingAB 1bd6807a21 Make that correct 2022-10-30 21:14:39 +01:00
uNetworkingAB fc51d2b4d6 Make that in batch 2022-10-30 21:10:01 +01:00
uNetworkingAB c613a4cb9a Only accept alnum + hypen field names 2022-10-30 20:41:24 +01:00
uNetworkingAB 9acacf7ebe Assume 0 false positives in test 2022-10-29 06:20:43 +02:00
uNetworkingAB a730941806 Improved bloom filter 2022-10-29 06:18:17 +02:00
Ciro Spaciari 3f72aea565 added more c apis and capi ssl version with capi examples (#1395)
* added more apis and ssl version with most examples

* some make files ajusts

* set close connection to false (7~10x better performance) in examples, added Async example with abort handler, added var in Makefile for capi library

* added better comments and fixed CAPIHelloWorldASync sample

* removed ssl and removed allocations

* added make file

* removed dynamic allocations

* add rust example and rename other samples

* remove make capi and make capi_examples from the main Makefile

* remove capi targets from clean on main Makefile

* add buffer solution for get header and some string_view values

* added more Rust like sample

* add void* user_data in all places with handlers

* refactor to eliminate std::strncat

* added SSL

* added -fPIC to allow dynamic libraries to link (Python and Ruby needs)

* removed uws_socket_context_options_t

* removed uws_timer_t

* fixed async examples

* added shared library in makefile for python tests

* fixed uws_res_end_without_body and added uws_get_loop_with_native

* added libuv build

* reverted unintended helloworld and helloworld threaded changes

* cork tests

* added uws_req_get_full_url, uws_req_for_each_header, uws_req_for_each_header

* revert HttpResponse.h log changes

* initial add for bun features (Thanks Jarred)

* add uws_app_listen_domain, uws_app_listen_domain_with_options, uws_app_domain, and option to pass nullptr to http routes for dynamically removes

* added uws_res_state, HttpResponse and WebSocket corkUnsafe + uncorkUnsafe

* removing changes in HttpResponse and WebSocket

* revert changes outside capi

* new lines at the end revert

* revert makefiles

* revert makefiles last new line

* revert makefiles last new line
2022-10-29 04:49:01 +02:00
uNetworkingAB 83c54aa096 Update READMORE.md 2022-10-27 08:11:26 +02:00
uNetworkingAB d174a7ed24 Update HttpParser.h 2022-10-24 22:30:50 +02:00
uNetworkingAB 8f85fadd02 Add RFC9110 reference 2022-10-24 22:25:48 +02:00
Alex Hultman 0b590c923e Minor fixup for request line 2022-10-24 20:25:56 +02:00
uNetworkingAB 368a4b41de Do not allow invalid chars in header value 2022-10-24 19:59:14 +02:00
uNetworkingAB 74dac77adb Never accept whitespace between key and colon 2022-10-24 19:02:04 +02:00
uNetworkingAB 22f0b04a1d Break if missing host header 2022-10-24 18:46:21 +02:00
uNetworkingAB 6bed3c0b5a Update README.md 2022-10-23 04:10:19 +02:00
Alex Hultman f0586366da Take some from jarred 2022-10-23 03:41:03 +02:00
Alex Hultman f762ede7d1 Do not support HTTP/1.0 2022-10-23 02:10:32 +02:00
Alex Hultman c1fd0e4050 Be strict with content-length, use fullptr as error 2022-10-23 01:42:32 +02:00
Alex Hultman 05523997db The rules are way simpler than so 2022-10-22 23:35:58 +02:00
Alex Hultman d18deb8fe3 Be more strict with content-length, transfer-encoding 2022-10-22 00:43:58 +02:00
Alex Hultman 7cdb1f7224 Do not expect a trailer after chunked body 2022-10-18 16:55:22 +02:00
Alex Hultman 6cb37f9b00 Require explicit transfer-encoding: chunked for said parsing to begin 2022-10-17 21:34:55 +02:00
Alex Hultman bcf5034e3c Write Date header in all responses 2022-10-16 12:37:21 +02:00
uNetworkingAB 4b80e77c83 Update README.md 2022-10-16 04:02:23 +02:00
uNetworkingAB 8e3fb9aae2 Update README.md 2022-10-15 16:47:30 +02:00
Alex Hultman 45e9ca2372 Bump uSockets 2022-10-11 09:45:57 +02:00
Alex Hultman d8df12f336 Pass host along listen to h3 2022-10-11 09:16:23 +02:00
Alex Hultman 48b83ec9ff Pass listen port along to h3 2022-10-11 09:11:09 +02:00
Alex Hultman e64069966a Bump uSockets 2022-10-11 08:56:49 +02:00
Alex Hultman b2d9356daa Bump uSockets 2022-10-10 16:33:12 +02:00
Alex Hultman f8a01db5ad Bump uSockets 2022-10-10 16:07:40 +02:00
Alex Hultman 23698465e8 Bump uSockets 2022-10-10 15:59:02 +02:00
Alex Hultman 78a1801830 Bump uSockets 2022-10-10 15:11:57 +02:00
Alex Hultman 70a84c93be Bump uSockets 2022-10-10 12:37:21 +02:00
Alex Hultman 9428c55053 Use new chunked encoding parser 2022-10-08 08:16:55 +02:00
Alex Hultman 9437b0e4e8 Add Crc32 hashing example 2022-10-08 08:09:35 +02:00
Alex Hultman 526d5d8bb9 Mother of god; do not require C++20 2022-10-08 06:18:29 +02:00
Alex Hultman 221509f11d Add isParsingChunkedEncoding helper 2022-10-08 06:15:20 +02:00
Alex Hultman 532d70041d Fix that chunk bug 2022-10-08 06:10:44 +02:00
Alex Hultman c5a53782bc Make the chunk parser stop after trailer, trigger next bug to fix 2022-10-08 05:35:02 +02:00
Alex Hultman e4e04940c5 Greatly improved chunk-encoded parser and test 2022-10-08 04:32:59 +02:00