52 Commits

Author SHA1 Message Date
whi
b7b1c2e2e3
veb: fix app.text() -> ctx.text() in README.md 2025-07-11 09:38:23 +03:00
Delyan Angelov
99be39cbd1
ci: remove the // vtest flaky: true tags from the remaining tests (#24379) 2025-06-19 20:16:49 +03:00
Einar Hjortdal
6a3f12d512
veb: fix handling of default CorsOptions.allowed_headers (#24703) 2025-06-13 15:53:50 +03:00
Alain Gilbert
dbc4071f6f
veb: fix readme typo (#24645) 2025-06-03 07:40:52 +03:00
Hitalo Souza
cd244757db
x.json2: update tests to integrate decoder2 in json2 (#24551) 2025-05-29 13:01:50 +03:00
Delyan Angelov
171df75cc7
veb: reduce veb_max_write_bytes from 16KB to 2KB (fix sending large dynamic responses from veb on macos/freebsd) (fix #24523) (#24522) 2025-05-19 15:30:21 +03:00
omahs
1957162c2a
all: fix typos (#24470) 2025-05-13 22:05:22 +03:00
Delyan Angelov
9dc69ef2aa
veb: support -d veb_max_read_bytes=16384, -d veb_max_write_bytes=16384, -d veb_default_port=1234, -d veb_max_http_post_size_bytes=8388608 2025-05-09 11:56:52 +03:00
Delyan Angelov
90ab5d2cdb
veb: allow route methods, that are tagged with @[unsafe] 2025-05-09 11:00:50 +03:00
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
⚡ Sigui
ae89466843
veb.assets: ✏️ fix typo in veb.assets error message (#23908) 2025-03-11 16:08:15 +02:00
sSAR
6cda3b0ab3
veb: handle sendfile errors, when the connection is canceled, before the file is completely transferred (#23891) 2025-03-09 16:33:11 +02:00
Alexander Medvednikov
8683e634ee veb: deprecate vweb (part 2); move all vweb examples to veb 2025-03-02 14:37:20 +03:00
Casper Küthe
c37309f6b9
veb: fix "error parsing request: io.Eof" when expecting a request body, but the data is not ready yet (fix #22464) (#23842) 2025-03-02 09:50:50 +02:00
Anonymous User
ab2eb0016c
veb.request_id: new middleware that implements request ID tracking (#23727) 2025-02-25 00:54:43 +03:00
Anonymous User
b4182301ae
veb.csrf: do not print anything by default, add an verbose: true option, to restore the old behavior if needed (#23725) 2025-02-15 16:15:32 +02:00
Louis Brauer
c92a21f8a5
veb: add ctx.no_content() + prevent content-type being set if the mime type is empty (#23425) 2025-01-11 11:39:50 +02:00
André Luiz
939d243b5e
veb: fix key value and translation file name (#23203) 2024-12-19 17:46:46 +02:00
yuyi
6f75872fab
checker: fix veb route method param with non ctx name (fix #23105) (#23107) 2024-12-09 10:32:26 +02:00
Delyan Angelov
b801083f13
Revert "os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966)"
This reverts commit 93009823f992176166bf5e5d90c9627adb46bdc0.
2024-11-25 15:10:15 +02:00
Elsie
93009823f9
os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966) 2024-11-25 12:17:33 +02:00
Martin Skou
c2d96c33b3
veb: fix large file transfer timeout (fix #22489) (#22924) 2024-11-21 08:53:19 +02:00
Delyan Angelov
a189d7f8e8
net: fix resolving of ::1:48872 (pass the *should_listen_on_both_ipv4_and_ipv6_by_default_test.v tests) (#22715) 2024-10-31 18:22:25 +02:00
Delyan Angelov
988f8b487d
ci: fix failing jobs after 4ed9d13 (#22606) 2024-10-20 23:51:19 +03:00
Alexander Medvednikov
4ed9d13803 veb: translations via %translation_key 2024-10-20 21:35:27 +03:00
alexey semenyuk
9788ae1f3e
veb,vweb: make the MIME type checks case insensitive (allow for serving static file.JPG) (fix #22425) (#22483) 2024-10-11 08:50:32 +03:00
Alexander Medvednikov
c11b1f8bd1 examples: fix type in veb_example.v 2024-09-17 23:00:11 +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
Alexander Medvednikov
26ab7d4fe1 veb: implicit context 2024-09-14 00:41:02 +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
Kim Shrier
7d23ff7386
veb: fix a few minor errors in the README.md (#22177) 2024-09-08 12:07:49 +03:00
Kim Shrier
0158b54b7b
veb: fix vweb_livereload reference to veb_livereload (#22171) 2024-09-07 08:46:21 +03:00
Carlos Esquerdo Bernat
d89e6df2a1
veb: extract constants into consts.v (#22132) 2024-08-30 13:53:31 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
Delyan Angelov
721b6a9142
veb: change example description, to avoid repetitive wording (ease debugging of issue#22017) 2024-08-10 08:53:46 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +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
Leo Developer
72a3fd6f02
veb.auth: use constant time comparision in compare_password_with_hash (#21693) 2024-06-18 23:21:20 +03:00
poggingfish
1a685c30aa
vweb, veb, x.vweb: add m3u8 MIME type application/vnd.apple.mpegurl for multimedia playlists (#21688) 2024-06-16 22:21:43 +03:00
Yashank
1da3b3b840
veb: update import name in docs (#21668) 2024-06-12 13:04:50 +03:00
Alexander Medvednikov
ec055dc774 oauth: make Context fields public 2024-06-10 12:11:40 +03:00
Alexander Medvednikov
2d5c457901 checker: -warn-about-allocs; nil interface allocation fix; parser: tmpl @else [cond] 2024-05-29 11:48:30 +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
Bakul Shah
9997ac4367
veb: support sendfile() syscall on FreeBSD (#21541) 2024-05-21 08:47:24 +03:00
Delyan Angelov
1b5f905512
ci: temporary fix for gitly compilation 2024-05-06 08:54:28 +03:00
Turiiya
e24e905e51
vlib: fix veb (#21345) 2024-04-25 02:13:55 +03:00
Alexander Medvednikov
1aee2b567b veb: copy x.vweb to veb, and make it work with comptime 2024-04-24 19:23:19 +03:00
Alexander Medvednikov
5cc67bbedb veb.auth: a minor find_token fix 2024-03-29 15:55:26 +03:00
Alexander Medvednikov
ee045eda68 veb.auth: detailed documentation with examples 2024-02-24 15:38:46 +03:00