Commit graph

55 commits

Author SHA1 Message Date
Alexander Medvednikov
e5f70278ea x.vweb: remove the entire module (it's now veb) 2025-01-19 05:43:03 +03:00
Delyan Angelov
b801083f13
Revert "os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966)"
This reverts commit 93009823f9.
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
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
d79b85099c
x.vweb: bump port numbers for tests, to avoid conflicts with the equivalent veb test ports 2024-10-30 20:27:26 +02: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
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
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
Alexander Medvednikov
ae1b9ed571 veb: deprecate x.vweb in favor of veb; checker: show missing variants in the sumtype error 2024-08-18 17:27:08 +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
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
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
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
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
Casper Küthe
d0cbfc1461
x.vweb: accept query params as method arguments (#21201) 2024-04-07 09:20:55 +03:00
Delyan Angelov
cd0e0b18ea
ci: mark both vweb and x.vweb versions of vweb_should_listen_on_both_ipv4_and_ipv6_by_default_test.v as flaky
Both started failing randomly near a1d4712b from 2024-04-02 (mainly on the macos runner).
2024-04-04 16:15:47 +03:00
Delyan Angelov
4d24f8c3fc
ci: change listen ports in vweb_should_listen_on_both_ipv4_and_ipv6_by_default_test.v for both vweb and x.vweb, to reduce probability of network errors 2024-04-03 17:51:02 +03:00
Kim Shrier
ecbd214ee1
vweb, x.vweb: improve descriptions (#21155) 2024-04-01 19:48:46 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Turiiya
418462208a
vlib.x: fix typos, uniformize readme formatting (#21085) 2024-03-24 19:54:39 +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
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Alexander Medvednikov
fa7af809fc veb: a new module veb.auth for authentication logic (tokens, hashed passwords) 2024-02-18 23:23:57 +03:00
David Legrand
2568d336f8
x.vweb: fix handling of static URL paths like /sub.folder/a_folder (#20863) 2024-02-18 15:36:22 +02:00
David Legrand
2190b604a1
x.vweb: fix typos in README.md (#20856) 2024-02-17 17:59:58 +02:00
David Legrand
feb649f79c
doc: x.vweb static website capabilities (#20808) 2024-02-13 12:30:25 +02:00
David Legrand
5da88800ae
x.vweb: add full static host support, for urls ending with /folder/ , where the folder backing it, has index.html inside (#20784) 2024-02-11 11:19:37 +02:00
Hitalo Souza
ee3cd36760
picoev: renaming, doc (#20567) 2024-02-10 05:54:27 +03:00
Casper Küthe
ee55e9b461
x.vweb: add serve_static example in README (#20740) 2024-02-07 06:35:21 +02:00
MedLabs
9f32af78eb
x.vweb: fix cors example (#20738) 2024-02-06 21:18:05 +02:00
Casper Küthe
4b4646169b
x.vweb: add cors middleware (#20713) 2024-02-05 00:16:29 +02:00
Delyan Angelov
a80af0ff62
x.vweb: add the missing include for C.sendfile to sendfile_linux.c.v 2024-02-04 23:09:20 +02:00
Delyan Angelov
8609ea1954
x.vweb: use $if debug_ev_callback ? { for the [vweb] error: write event on connection should be closed message 2024-02-04 16:39:07 +02:00
Alexander Medvednikov
68275ec7bd x.vweb: error() and simpler redirect(); comptime: a clearer error 2024-02-03 04:23:38 +03:00
Casper Küthe
32b4a3c008
x.vweb: support HTTP 1.1 persistent connections (#20658) 2024-01-27 07:07:00 +02:00
Casper Küthe
8714233f79
vweb, x.vweb: update error checking for new error io.Eof (#20656) 2024-01-26 02:47:25 +02:00
Casper Küthe
d88ca11a4c
picoev, x.vweb: small fixes and backport changes from vweb (#20584) 2024-01-23 18:34:22 +02:00
Muhammad Saleh Solahudin
7b6349f0a4
vweb,x.vweb: fix typos in README files (#20604) 2024-01-21 11:48:04 +02:00
Casper Küthe
464062774f
x.vweb: add error, when static directory does not exist (#20455) 2024-01-10 18:07:55 +02:00
Casper Küthe
7c310a1bd7
x.vweb, picoev: fix timeout event (#20377) 2024-01-04 12:05:39 +02:00
Delyan Angelov
1ca808cdc7
ci: retry vlib/x/vweb/sse/sse_test.v 3 times, to avoid false positives for unrelated PRs 2024-01-02 17:36:03 +02:00
Delyan Angelov
923b410d4d
x.vweb: fix $vweb.html() integration in cgen for the newer x.vweb module (fix #20204) 2023-12-30 23:05:07 +02:00
Casper Küthe
fa81188887
x.vweb.assets: reimplement assets module for x.vweb (#20280) 2023-12-30 22:10:10 +02:00
Casper Küthe
ada9efd825
x.vweb: fix fsanitize-address test for SSE, improve documentation on the usage of takeover_conn (#20249) 2023-12-22 09:53:27 +02:00
Casper Küthe
cfd19bfe77
x.vweb.sse: reimplement SSE module for x.vweb (#20203) 2023-12-17 21:00:10 +02:00