Commit graph

275 commits

Author SHA1 Message Date
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Delyan Angelov
55f482bb63
ci: update linux image runners from ubuntu-20.04 to ubuntu-24.04 (#23706) 2025-02-17 07:37:59 +02:00
kbkpbot
f053f99406
net.http.file: use urllib decode uri, to handle urls to files that have unicode characters in their name (fix #23683) (#23684) 2025-02-10 21:36:56 +02:00
Emma
6b92f8fada
all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
JalonSolov
0351332761
net.http.cookie: handle value with = better (fix #23297) (#23300) 2024-12-28 22:40:23 +02:00
kbkpbot
4a1c7add24
net.http: add support '=' in cookie values (fix #23220) (#23257) 2024-12-27 10:33:16 +02:00
Vithorio Polten
f89cffad53
net.http: send Host headers with port (when the port is != 80 or 443) (fix #22941) (#22942) 2024-11-23 18:51:28 +02:00
Delyan Angelov
4aa87796ed
net.http: ensure that http.download_file_with_progress/3 works (in a degraded mode), on windows, even without passing -d no_vschannel 2024-11-13 11:43:37 +02:00
Hitalo Souza
4e13ddf847
picoev,net.http: use Time.http_header_string method, to improve performance (#22619) 2024-10-22 16:39:48 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
yuyi
dd2210abf6
ast: fix const field str() (#22192) 2024-09-10 17:02:51 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
3247b98bb5
ast: fix const field str() (#21998) 2024-08-06 17:42:24 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Delyan Angelov
faea2d97bf
net.http: fix a typo, affecting -d trace_http_response 2024-08-02 00:01:14 +03:00
Felipe Pena
ac136c08e6
cgen: fix struct ref field with no ref structinit (#21932) 2024-07-28 01:30:19 +03:00
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
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
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
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
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +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
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +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
Alexander Medvednikov
acf0107493 builtin: str.last_index(); pref: hide-auto-str; 2024-03-28 18:26:30 +03: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
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
Delyan Angelov
856984aa14
cleanup: turn .microseconds() ... us to .microseconds() ... µs (#20588) 2024-01-20 07:16:24 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
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
Felipe Pena
42a8c7e16b
net.http: fix http.delete() checking (#20131) 2023-12-10 14:32:30 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Turiiya
09ed7d74aa
vlib, tools: make minor improvements, cleanup (#19950) 2023-11-21 17:45:45 +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