Commit Graph

907 Commits

Author SHA1 Message Date
uNetworkingAB 540048e26c Update cpp.yml 2022-11-02 11:26:37 +01:00
rehans f687c0728c Use ULL (unsigned long long) instead of UL (#1509) 2022-11-02 11:20:10 +01:00
Alex Hultman 9f0fe16842 That's already working pretty fine 2022-11-02 09:26:17 +01:00
uNetworkingAB 10289dbeb1 Create shim 2022-11-02 09:11:28 +01:00
Alex Hultman 00f4285baf Ported most of Makefile logic over 2022-11-02 09:05:03 +01:00
uNetworkingAB f2258b587b Update cpp.yml 2022-11-02 07:47:19 +01:00
uNetworkingAB 2c48a62642 Even if I like it, grown men don't need it 2022-11-02 06:45:55 +01:00
Alex Hultman e1708b85a5 Build and run tests on Windows via Clang/Makefile 2022-11-02 06:38:14 +01:00
Alex Hultman 9a82a52f2c Bump uSockets 2022-11-02 04:21:48 +01:00
Jun Woo Shin 2daeff0390 Declare TopicTreeMessage and TopicTreeBigMessage prior to use (#1507)
Co-authored-by: Jun Woo Shin <jwoos@meta.com>
2022-11-02 04:03:37 +01:00
Ciro Spaciari bba6c9b0cd added uws_req_get_case_sensitive_method in C API (#1506)
* added uwsReq.getCaseSensitiveMethod()

* uws_req_get_case_sensitive_method header

* add license

* update license
2022-11-01 22:24:08 +01:00
Alex Hultman 2a2c3ecb45 Run unit and smoke tests on all platforms 2022-11-01 06:08:10 +01:00
Alex Hultman 12e217d9e3 Fix whitespace trimming test failure 2022-11-01 06:05:42 +01:00
Alex Hultman 4109771890 Filter should be builder pattern 2022-11-01 06:01:20 +01:00
uNetworkingAB 32d71d52b7 Update README.md 2022-11-01 05:59:16 +01:00
uNetworkingAB a686907acc Update Makefile 2022-11-01 05:46:14 +01:00
uNetworkingAB 30d4765894 Update cpp.yml 2022-11-01 05:42:36 +01:00
Alex Hultman 61233bf5a2 Run smoketests in CI? 2022-11-01 05:36:08 +01:00
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