Commit graph

710 commits

Author SHA1 Message Date
Delyan Angelov
fbdc992b30
net.http, veb, vweb, x.vweb: add mime type text/x-vlang, for .v and .vsh file extensions (#21851) 2024-07-12 14:23:50 +03:00
Swastik Baranwal
547c056bf4
net: fix TcpConn.peer_ip/0 to only return the ip address, without the port number (#21831) 2024-07-10 06:12:37 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
FNEOSLDI
094c30c347
net.http: correct Response.status() method comment, to indicate returning of a Status enum field, instead of struct (#21735) 2024-06-26 07:45:16 +03:00
Turiiya
5b9358279a
vlib: simplify byte character conditions by using methods like is_capital, is_lower, is_letter etc (#21725) 2024-06-25 09:55:08 +03:00
Alexander Medvednikov
0d52a7d91e openssl: more verbose error; libgc: make compile on arm macs 2024-06-07 11:48:27 +03:00
Turiiya
a2ce55d922
builtin: update last_index_u8, deprecate index_u8_last string methods, make consistent with last_index (#21604) 2024-06-04 13:21:47 +03:00
Delyan Angelov
8504beaaab
net.http: implement http.download_file_with_progress/2, saving each chunk, as it is received, without growing the memory usage (#21633) 2024-06-02 10:26:37 +03:00
Delyan Angelov
2d12b03435
net.html: quick workaround for a cgen problem for const x = int(0x80000000) 2024-06-01 11:29:09 +03:00
Turiiya
4bda28b718
net.urllib: update parse host to allow for better error handling (#21602) 2024-05-30 17:38:15 +03:00
Turiiya
ea20c1fa58
net.urllib: cleanup parse_authority, add test (#21599) 2024-05-30 02:20:34 +03:00
Delyan Angelov
a1ad658d27
net.http: change default http.Server listening address to :9009, to avoid conflicts with tools, that start their own http servers on 8080 like bytehound (#21570) 2024-05-25 14:30:10 +03:00
Delyan Angelov
cc72c2e579
ci: shorten path used for unix domain socket tests (to fit in Windows path limits) 2024-05-24 20:15:50 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Delyan Angelov
9f2cb8ccbb ci: mark again tcp_test.v as flaky (it had 3 unrelated failures on the CI over the last week) 2024-05-19 10:32:44 +03:00
Rom
2a614bd0a8
net.unix: remove debug/trace eprintln (#21517) 2024-05-17 08:45:26 +03:00
Delyan Angelov
20f907a70d
ci: reduce false negatives for tcp_test.v, retry it 3 times before failing 2024-05-07 15:30:56 +03:00
Delyan Angelov
44c84f6187
net: improve error message in .port() 2024-05-05 21:22:36 +03:00
vcker
a4cdc48542
net: add a .port()! method for net.Addr (#21412) 2024-05-05 20:12:33 +03:00
Turiiya
712a9125bf
all: use apt over apt-get for common APT subcommands (#21359) 2024-04-26 21:01:52 +03:00
Turiiya
8dafca126f
test, ci: fix network tests; update and activate tests in periodic ci (#21339) 2024-04-25 02:15:22 +03:00
Delyan Angelov
354b21003a
net.http.file: fix usage examples (add closing apostrophes) 2024-04-23 17:20:05 +03:00
Delyan Angelov
4f0a8b5ee2
net.http.file: support index_file (index.html by default), and auto_index (true by default) parameters to file.serve() 2024-04-22 08:28:51 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
4zv4l
38b3115a9c
breaking,net.ftp: allow to choose a different port than port 21 (change FTP.connect to accept host:port, not just a host address) (#21185) 2024-04-05 11:23:01 +03:00
Turiiya
be0986dc52
net.http: fix panic on empty addr, cleanup listen_and_serve Server method (#21164) 2024-04-02 11:12:43 +03:00
Turiiya
c086bee5be
breaking,vlib: update handling of imports whose symbols are not directly used in imported file, remove pub const is_used = 1 workarounds (#21160) 2024-04-01 22:07:05 +03:00
Alexander Medvednikov
acf0107493 builtin: str.last_index(); pref: hide-auto-str; 2024-03-28 18:26:30 +03:00
Turiiya
64a336932c
thirdparty,net.mbedtls: update mbedtls to latest compatible version v3.3.0 (#21118) 2024-03-28 08:46:21 +02:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Alexander Medvednikov
b2df3264a7 gg: fix empty circle in native; http: post_form_with_cookies; veb: print veb action in html errors 2024-03-11 18:21:06 +03:00
kbkpbot
50e271a77e
net: workaround a -prod -cc gcc bug (#20872) 2024-02-19 15:19:11 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Turiiya
c1b5d8218b
net: fix function name in split_address doc comment (#20794) 2024-02-12 03:35:41 +02:00
Delyan Angelov
f603035758
net: reduce flakyness of tcp test (#20761) 2024-02-09 11:52:27 +02:00
kbkpbot
a9ebab06da
net: fix non-blocking read/write (#20438) 2024-02-08 20:18:29 +02:00
GGRei
2c6a8c536c
net.http: add a temporary fix for the intermittent segfault with http.get_ text/1 and -prod -cc gcc 13.2.0 (fix #20506) (#20660) 2024-01-26 11:33:09 +02:00
shove
4163faf0dd
net.smtp: implement mail attachment support (fix #19920) (#20640) 2024-01-24 07:33:25 +02:00
Delyan Angelov
856984aa14
cleanup: turn .microseconds() ... us to .microseconds() ... µs (#20588) 2024-01-20 07:16:24 +02:00
Delyan Angelov
f5db8f710b
net: cleanup comments for enum WsaError (#20543) 2024-01-15 11:43:08 +02:00
Kim Shrier
9268241f96
net.unix: make the error messages in unix_test.v more specific (#20537) 2024-01-15 03:26:12 +02:00
shove
abc9e06ed1
net.urllib: fix parsing url error, when querypath is '//' (fix #20476) (#20504) 2024-01-12 22:51:48 +02:00
Delyan Angelov
3142114bd7
net: remove unused import in tcp_test.v 2024-01-10 17:15:20 +02:00
Henrik Holst
e8e198c349
net: fix vlib/net/tcp_test.v (since .listen_tcp with af .unix, is now expected to return an error) (#20472) 2024-01-10 17:14:00 +02:00
Felipe Pena
1303c244e2
orm.pg: fix f32 and f64 endianness (#20412) 2024-01-06 22:27:10 +02:00
Henrik Holst
7f1092aa96
net: support only ip and ip6 in net.tcp_listener (#20336) 2024-01-02 00:44:28 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Delyan Angelov
d8fa13481c
net.html: fix notices with latest V, when compiling code with import net.html 2024-01-01 14:41:33 +02:00