9 Commits

Author SHA1 Message Date
Genrikh Fetischev 20b3ea4685 exposed uws_app_close function from capi (#1667) 2023-10-17 20:50:17 +02:00
Genrikh Fetischev 09d2795852 exposed loop defer function from capi (#1579)
Co-authored-by: g.fetishev <g.fetishev@aligntech.com>
2023-03-06 11:34:59 +01:00
Jan c2209fbad2 Fix some typos (#1570)
* Fix typo for optional_data (closes #1567)

* Fix typo in comment
2023-02-05 08:59:03 +01:00
blackmius c5d687540a rename capi uws_req_set_field -> uws_req_set_yield (#1561) 2023-01-24 23:13:19 +01:00
Ciro Spaciari 4821d090fe [CAPI] add DLL_EXPORT for windows, void* user_data in websockets methods and size_t in methods/handler without it (#1513)
* add DLL_EXPORT for windows

* add user_data and size_t in pending methods

* added get_remote_address and get_proxied_remote_address to res

* fixed mixing lenght in some std:string_view, added subscriptin event, fixed ssl_ciphers
2023-01-06 10:42:29 +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
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
Alex Hultman 40742a7c63 Add rust experiment example 2022-01-07 05:51:23 +01:00
Alex Hultman 0a44518fc0 Add experimental C-API for evaluation 2021-02-07 20:16:30 +01:00