Commit graph

710 commits

Author SHA1 Message Date
koplenov
76e1ac3db3
net.http: support -d no_vschannel on windows, to fix long waits, while connecting on some systems (#20265) 2023-12-28 11:49:25 +02:00
el-gringo
5be5cd9be1
websocket: enable using an already existing connection (from vweb or another http server) (#20103) 2023-12-19 14:16:07 +02:00
Delyan Angelov
de3b2b00a3
os, net.http.file: add a folder listing to the http static file server, started by file.serve/1 (#20192) 2023-12-16 08:06:30 +02:00
Delyan Angelov
687b33a137
net.http.file: fix oneline usage examples in the comments of file.serve/1 2023-12-15 20:34:12 +02:00
Swastik Baranwal
6e47782bdd
net.http: remove unused read_set_cookies function (#20187) 2023-12-15 16:53:40 +02:00
GGRei
0a029d4532
net: make net.fionbio and net.msg_nosignal constants public in net_windows.c.v (#20183) 2023-12-15 15:58:05 +02:00
Felipe Pena
42a8c7e16b
net.http: fix http.delete() checking (#20131) 2023-12-10 14:32:30 +02:00
Turiiya
9817dfc5ba
net.html: fix doc comments for html.parse functions (#20109) 2023-12-07 18:22:15 +02:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
Kim Shrier
60cdc6a728
net.websocket: fix the notice messages about the initialization of references outside unsafe mode (#20038) 2023-11-30 15:30:35 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Kim Shrier
be544d73f3
net.openssl: correctly assign nil to reference values after the recent notice about it (#19981) 2023-11-24 09:38:05 +02:00
shove
2a6c1d9074
all: assigning 0 to reference fields now requires unsafe blocks (fix #14911) (#19955) 2023-11-23 11:16:26 +02:00
Turiiya
09ed7d74aa
vlib, tools: make minor improvements, cleanup (#19950) 2023-11-21 17:45:45 +02:00
Turiiya
8c1da9ba94
net.openssl: use actual C values for the SSLError enum (#19945) 2023-11-20 17:57:35 +02:00
Kim Shrier
66181f05bd
net.openssl: add flags for preferring openssl from the ports collection (in /usr/local) (#19904) 2023-11-17 10:50:01 +02:00
Joe C
1e3d38255f
parser: deprecate old attribute syntax & update remaining (missed) attributes (#19879) 2023-11-15 13:07:59 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Turiiya
453f65a20a
net.mbedtls: use char and usize types for describing more precisely the C API of mbedtls (#19837) 2023-11-13 12:51:32 +02:00
Casper Küthe
c0eeb85eab
net.unix: update the module to make it compatible with windows and coroutines (#19831) 2023-11-11 10:07:56 +02:00
Alexander Medvednikov
e7cad4f55d net,vweb: reduce allocations by ~80% 2023-11-11 01:10:34 +03:00
Roman
e4f55fb299
net.http: add socks5|http(s) proxy support [Linux] (#19676) 2023-11-09 23:56:16 +02:00
JalonSolov
01022e918e
flag,json,net: handle C calls in .v files (part of enabling -W impure-v as default) (#19779) 2023-11-06 14:27:00 +02:00
JalonSolov
29d60280c4
net.http: increase max_redirects to 16 (#19743) 2023-11-03 06:57:16 +02:00
Marco Santos
cee947ca9e
net.html: add note to parse and parse_file, that they will produce a DOM with lowercased tag names (#19720) 2023-11-01 12:28:21 +02:00
Joe C
a63f3e6f77
coroutines: use photon work_pool when nr_jobs > 0, and use photon libc fn wrappers (#19711) 2023-10-31 20:12:52 +03:00
Turiiya
e465f7490c
tests: cleanup legacy temp path (#19716) 2023-10-31 15:16:19 +02:00
yuyi
7681a0b46d
checker: check error of implementing other module private interface (fix #19620) (#19688) 2023-10-29 14:20:16 +02:00
shove
b3b68e418d
net.http: add a retry mechanism to http.fetch(), when the socket inevitably errors (#19660) 2023-10-27 12:27:54 +03:00
shove
0187b8e86a
net: ignore the SIGNPIPE signal at the socket level on macos (#19642) 2023-10-25 15:56:00 +03:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Roman
99e0832f17
net.http: support passing an HTTP proxy server in http.fetch (#19606) 2023-10-25 11:41:52 +03:00
Turiiya
f98bb863ab
vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
shove
166604f775
net, net.http: fixed some ssl library call return values judgment and handling (#19614) 2023-10-23 09:53:19 +03:00
Delyan Angelov
9cb8eac48a
net: use conv.hton* consistently, instead of $if tinyc { conv.hton16(port) } $else { u16(C.htons(port)) } 2023-10-20 06:52:03 +03:00
shove
772eb1ed12
net: fix handling of spurious wake-up signals, lost when calling select() in mbedtls and openssl (continue on C.EINTR) (#19600) 2023-10-19 16:19:37 +03:00
shove
07390ef4c4
net, net.http: fix C.FD_ISSET declaration (#19594) 2023-10-19 11:29:13 +03:00
Delyan Angelov
0a89f3082d
net.http: support passing on_running, on_stopped, on_closed callback functions to http.Server{}, as well as show_startup_message: false. (#19591) 2023-10-18 09:00:42 +03:00
pomid
7c4029c515
net.conv: add varinttou64 and u64tovarint functions, for the variable unsigned integer encoding, described in rfc9000 (for QUIC) (#19568) 2023-10-16 14:01:30 +03:00
Alexander Medvednikov
c947c140ee builtin: windows definitions 2023-10-15 07:43:57 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
Delyan Angelov
aba38d167b
net.openssl: fix ./v -cstrict -cc gcc-11 vlib/net/openssl/openssl_compiles_test.v 2023-10-07 11:36:29 +03:00
Delyan Angelov
c552ecf2b0
ci: fix vlib/net/tcp_test.v (change return type of one_shot_echo_server from ? to !) 2023-09-30 19:56:40 +03:00
Anton Zavodchikov
aa3832ceda
net.html: make public the CloseTagType enum (#19468) 2023-09-29 12:00:41 +03:00
Delyan Angelov
d93488b141
vlib: add net.http.file, allowing for v -e "import net.http.file; file.serve()" (#19348) 2023-09-15 00:45:02 +03:00
pancake
0244ae6fe9
net.ssl: implement SSLConn.peer_addr() (#19333) 2023-09-13 12:16:46 +03:00
shuankio
a0490f2b67
net.http: fix post error with https on windows (#19334) 2023-09-12 15:43:13 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
Kim Shrier
2d4ccf6829
vlib: replace macros that resolve to __builtin_bswapnn calls for tcc (#19305)
The tcc compiler does not have __builtin_bswap64, __builtin_bswap32,
and __builtin_bswap16 functions.  The various hton and ntoh macros
resolve down to these functions.  When compiling with tcc, we should
be using the analogous functions from net.conv.
2023-09-08 07:42:28 +03:00