Alexander Medvednikov
|
da58ba0d5c
|
vweb: populate action method params with form values
|
2021-10-12 07:10:12 +03:00 |
|
Anton Zavodchikov
|
4d7bb95c2f
|
vweb: add a vweb_global attribute (#12064)
|
2021-10-12 06:35:36 +03:00 |
|
Anton Zavodchikov
|
895daf297f
|
vweb: router refactor (#12041)
|
2021-10-03 16:26:44 +03:00 |
|
Alexander Medvednikov
|
1546090131
|
vweb: remove a duplicate function parse_multipart_form
|
2021-09-11 04:21:10 +03:00 |
|
Adam Oates
|
1b262c4f1d
|
vweb: show correct page on http error 404 (#11355)
|
2021-08-31 21:36:26 +03:00 |
|
Miccah
|
2cb0db633d
|
vweb: use Response struct for 302 response (#11245)
|
2021-08-20 01:13:36 +03:00 |
|
Jordan Liese
|
a9fb24cb5f
|
vweb: fix missing newline in redirect header string (#11242)
|
2021-08-19 14:58:57 +03:00 |
|
JalonSolov
|
1dee4f25fd
|
vweb: add more common mime types (#11226)
|
2021-08-18 08:51:18 +03:00 |
|
Miccah
|
1a7ba6f6d4
|
vweb: fix catchall route (#11168)
|
2021-08-12 19:05:50 +03:00 |
|
Daniel Däschle
|
800c0e5092
|
vlib: remove deprecated map{} usages as well as deprecated functions (#11035)
|
2021-08-04 12:44:41 +03:00 |
|
Alexander Medvednikov
|
f879b3e221
|
ci: run gitly
|
2021-08-03 15:41:52 +03:00 |
|
shadow
|
66bc8bc0cb
|
vlib: remove many deprecated functions (#10972)
|
2021-07-28 09:22:19 +03:00 |
|
Miccah
|
a0e27d3fd9
|
net.http: refactor the Response struct (#10922)
|
2021-07-24 20:47:45 +03:00 |
|
Miccah
|
1a6a7a678a
|
vweb: change Context.headers from string to struct Header (#10749)
|
2021-07-18 12:21:07 +03:00 |
|
Miccah
|
c3c420a41c
|
vweb: remove chunked encoding support in server responses (#10750)
|
2021-07-13 15:47:16 +03:00 |
|
Miccah
|
3039092b89
|
net.http: add header_from_map and join functions (#10747)
|
2021-07-12 12:16:41 +03:00 |
|
Miccah
|
44e78a6301
|
vweb: use http.Response constants instead of strings (#10730)
|
2021-07-10 11:58:07 +03:00 |
|
Alexander Medvednikov
|
1469b47f7d
|
vweb: free app object for each request
|
2021-06-24 01:37:06 +03:00 |
|
Tomas Hellström
|
46eb6befd5
|
vweb,net: just log errors in accept() instead of panic-ing, add time.sleep(1ms) after each retry in select (#10489)
|
2021-06-17 10:41:26 +03:00 |
|
Miccah
|
6a19a13812
|
vweb: re-enable concurrency and fix the counter example (#10484)
|
2021-06-17 02:08:02 +03:00 |
|
Alexander Medvednikov
|
ae014ad06d
|
vweb: add a missing check
|
2021-06-16 23:35:14 +03:00 |
|
Alexander Medvednikov
|
eacdd0d7e1
|
comptime: fix $(field.name) in $for; vweb: shared fields
|
2021-06-16 20:33:39 +03:00 |
|
Emily Hudson
|
535dcac8fa
|
net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904)
|
2021-06-13 23:53:38 +03:00 |
|
Alexander Medvednikov
|
dcfea5c69b
|
vweb: detect mime type automatically in serve_static()
|
2021-05-22 07:02:25 +03:00 |
|
Alexander Medvednikov
|
f09a5135e9
|
checker: handle builtin enum init correctly
|
2021-05-20 03:14:32 +03:00 |
|
Alexander Medvednikov
|
ed6ad728d9
|
vweb: fix serving static files
|
2021-05-16 04:28:14 +03:00 |
|
Delyan Angelov
|
143c3d4bb4
|
io: deprecate io.make_reader (not needed anymore)
|
2021-05-13 10:26:26 +03:00 |
|
Alexander Medvednikov
|
dc034d9b16
|
vweb: make thread safe; checker: $if T is Interface {
|
2021-05-11 09:30:18 +03:00 |
|
Uwe Krüger
|
d26ac5692e
|
all: various fixes for [heap]/auto-heap handling (#10033)
|
2021-05-07 15:58:48 +03:00 |
|
Miccah
|
8b50a5a171
|
vweb: fix route matching on / (#10001)
|
2021-05-05 14:20:40 +03:00 |
|
Lukas Neubert
|
dee733aae4
|
fmt: reset const field align after multi line exprs (#9916)
|
2021-04-29 02:17:37 +03:00 |
|
Carlos Esquerdo Bernat
|
f46868133b
|
vweb: remove calling .to_lower too early while processing url and url params (#9805)
|
2021-04-28 07:46:36 +03:00 |
|
Miccah
|
e2be3ec396
|
vweb: split and parse Content-Type header correctly (#9756)
|
2021-04-16 08:46:06 +03:00 |
|
William Clavier
|
b11b744630
|
vweb: fix the none error for empty TCP connections (#9759)
|
2021-04-16 08:45:46 +03:00 |
|
Alexander Medvednikov
|
a18f85c8cd
|
vweb: init_once() => init_server(); init() => before_request()
|
2021-04-15 06:27:24 +03:00 |
|
Miccah
|
5eb67ccd94
|
http: use Header struct for headers (#9462)
|
2021-04-09 18:17:33 +02:00 |
|
Atakan Yenel
|
e9c7cd0c9f
|
vweb: add custom errors (#9519)
|
2021-03-30 15:30:16 +03:00 |
|
Alexander Medvednikov
|
149151b1e8
|
cgen: minor vfmt
|
2021-03-17 03:41:52 +03:00 |
|
Alexander Medvednikov
|
091a1bab27
|
autofree: free global map consts and some vweb fixes
|
2021-03-17 01:33:35 +01:00 |
|
Alexander Medvednikov
|
852d302b87
|
io: BufferedReader.free()
|
2021-03-15 21:25:19 +01:00 |
|
Alexander Medvednikov
|
530b981765
|
vweb: mark send_response_to_client with [manualfree]
|
2021-03-12 01:11:43 +03:00 |
|
Miccah
|
f26d2f02b7
|
ast, cgen, checker, parser: support method arguments in comptime $for (#9208)
|
2021-03-11 15:04:34 +02:00 |
|
Lukas Neubert
|
fdcfe397d4
|
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc (#9136)
|
2021-03-06 21:04:51 +02:00 |
|
Miccah
|
709d7460de
|
vweb: refactor form parsing and add tests (#9051)
|
2021-03-04 18:00:03 +02:00 |
|
Delyan Angelov
|
cd423251da
|
vweb: add .mount_static_folder_at/2 , use it instead of app.handle_static in the server_sent_events example
|
2021-03-02 21:30:18 +02:00 |
|
Miccah
|
d0fab60981
|
vweb: refactor routing logic (#9025)
|
2021-03-01 11:50:52 +01:00 |
|
spaceface
|
b712af56fd
|
all: bring back panic(err.msg) -> panic(err) (#9022)
|
2021-03-01 00:18:14 +01:00 |
|
spaceface
|
d63b7bc35a
|
all: update repo to use the new error handling syntax (#8950)
|
2021-02-28 23:20:21 +03:00 |
|
Miccah
|
7e08e84bc1
|
vweb: refactor HTTP request parsing (#8874)
|
2021-02-27 23:18:25 +01:00 |
|
zakuro
|
f54c1a5cc2
|
all: add strings.Builder.write_string and use write_string instead of write (#8892)
|
2021-02-22 13:18:11 +02:00 |
|
Louis Schmieder
|
7a35131721
|
vweb: add handle static root & documentation (#8865)
|
2021-02-21 20:01:29 +02:00 |
|
Nick Treleaven
|
4a0367a63c
|
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
|
2021-02-15 17:15:52 +02:00 |
|
Nick Treleaven
|
ea803113c3
|
checker: check unsafe V function calls (#8752)
|
2021-02-14 19:31:42 +01:00 |
|
Mohammad Ali Chraghi
|
86e6b4f926
|
examples: improve the pg and vweb output (#8640)
|
2021-02-09 11:31:25 +02:00 |
|
Nick Treleaven
|
9e751f72c4
|
doc, fmt: use map{key: value} syntax for map literals (#8623)
|
2021-02-08 16:57:42 +02:00 |
|
Lukas Neubert
|
7f4c582f1a
|
fmt: unwrap long infix exprs inside parenthesis if necessary (#8609)
|
2021-02-07 23:10:39 +01:00 |
|
Lukas Neubert
|
db0fc8fbc9
|
fmt: better function call wrapping inside ternary if branches (#8604)
* fmt: better funcation call wrap in singel line ifs
* tests
* format files
|
2021-02-06 21:46:52 +01:00 |
|
Delyan Angelov
|
f4b757e47d
|
examples: add examples/vweb/server_sent_events; implement vweb.sse
|
2021-02-03 16:03:06 +02:00 |
|
Louis Schmieder
|
4a6642b79e
|
vweb: fix vweb upload (#8392)
|
2021-01-29 14:48:52 +01:00 |
|
Delyan Angelov
|
e5a84719ca
|
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {}
|
2021-01-26 16:43:17 +02:00 |
|
Delyan Angelov
|
728344ff65
|
ci: fix v test-cleancode
|
2021-01-25 12:55:01 +02:00 |
|
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
|
Louis Schmieder
|
d8c94cd1fd
|
vweb: make multipart Content-Type header detection case-insensitive (#8255)
|
2021-01-21 21:16:25 +02:00 |
|
Louis Schmieder
|
f7c251f8f3
|
vweb: add multipart/form-data parser and file upload (#8160)
|
2021-01-21 11:08:51 +01:00 |
|
Louis Schmieder
|
b44ec4921f
|
vweb: make vweb async (#8095)
|
2021-01-21 11:08:38 +01:00 |
|
Delyan Angelov
|
d92f5c55ba
|
net: use mut and refs as receivers consistently (#8205)
|
2021-01-20 11:11:01 +01:00 |
|
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
|
Louis Schmieder
|
38881e4b20
|
vweb: Implement chunked encoding transfer (#8179)
|
2021-01-18 13:04:21 +01:00 |
|
Lukas Neubert
|
16c9cbce7c
|
fmt: correctly increase f.line_len for write_indent (#8174)
|
2021-01-18 06:02:29 +01:00 |
|
Daniel Däschle
|
53941c4a0a
|
fmt: fix if cond break readability (#8132)
|
2021-01-16 02:12:17 +01:00 |
|
zakuro
|
33694665f0
|
fmt: align each contiguous field of struct. not the whole. (#7981)
|
2021-01-12 04:38:43 +01:00 |
|
Alexander Medvednikov
|
1b07710ab3
|
vweb: make html() return Result
|
2021-01-08 05:05:29 +01:00 |
|
Alexander Medvednikov
|
e3f8d448c1
|
all: [noinit] struct attribute
|
2021-01-08 04:49:16 +01:00 |
|
Daniel Däschle
|
42e60b8e27
|
vweb: fix array.last usage (#7905)
|
2021-01-06 01:24:36 +01:00 |
|
Daniel Däschle
|
9f74be4cf6
|
vweb: route to index dynamically (#7782)
|
2021-01-05 01:30:27 +01:00 |
|
Alexander Medvednikov
|
89bbbe0ec0
|
vweb: vfmt vweb.v
|
2021-01-03 17:03:18 +01:00 |
|
Delyan Angelov
|
c1e0e01f8f
|
vweb: simplify the [post] pub fn no routing fix check
|
2021-01-02 13:47:54 +02:00 |
|
Delyan Angelov
|
d912ff165b
|
ci: fix failing vweb test, increase timeout for vweb_test_server.v, add VWEB_LOGFILE
|
2021-01-02 13:33:26 +02:00 |
|
Louis Schmieder
|
f7135979f5
|
vweb: fixed req type without path (#7792)
|
2021-01-01 21:57:45 +01:00 |
|
Daniel Däschle
|
ac22fe998a
|
vweb: default init methods (#7779)
|
2021-01-01 17:24:54 +01:00 |
|
Alexander Medvednikov
|
3ffdcd8910
|
vweb: embed context
|
2020-12-31 17:07:27 +01:00 |
|
Delyan Angelov
|
d563261e58
|
vweb: run vfmt, add it to v test-cleancode
|
2020-12-27 11:38:12 +02:00 |
|
Delyan Angelov
|
b1f6ff8871
|
ci: fix failing vweb_routing_checks.vv
|
2020-12-20 11:59:38 +02:00 |
|
Louis Schmieder
|
d96dcefb06
|
vweb: http methods check (#7371)
|
2020-12-18 07:34:06 +01:00 |
|
Emily Hudson
|
553ecf63e7
|
vlib/io: fix reader bugs, make read_all take a config struct (#7361)
|
2020-12-16 18:22:26 +01:00 |
|
Dialga
|
4500aade95
|
vweb: fix scan_static_directory (#7275)
|
2020-12-12 19:13:43 +02:00 |
|
Emily Hudson
|
cd2a2cef25
|
vlib/net: add buffered IO, x.net -> net (#6754)
|
2020-11-15 22:54:47 +02:00 |
|
Delyan Angelov
|
2dc9a45e06
|
vfmt: fix eating of app.$method(vars) ; format vlib/vweb/vweb.v
|
2020-11-14 13:55:10 +02:00 |
|
pancake
|
2994e7150f
|
vweb: check function and route parameter count (#6761)
|
2020-11-08 09:14:24 +01:00 |
|
Delyan Angelov
|
b14f779853
|
vweb: add a placeholder for checking route validity at startup
|
2020-11-05 22:59:11 +02:00 |
|
Alexander Medvednikov
|
a0bf796926
|
autofree: handle SelectorExpr and fix json
|
2020-11-02 00:57:45 +01:00 |
|
Alexander Medvednikov
|
dca3d13606
|
autofree: another lambda fix
|
2020-10-30 00:43:04 +01:00 |
|
Delyan Angelov
|
d261844da0
|
vweb: fix warnings about fn f(x, y Type)
|
2020-10-15 22:04:42 +03:00 |
|
Daniel Däschle
|
06cade6c31
|
all: change .ReturnType and .Type to .return_type and .typ (#6494)
|
2020-09-28 06:13:38 +02:00 |
|
Seven Du
|
98e6d25b42
|
vweb: make ip() to return peer_ip work (#6399)
|
2020-09-17 10:38:39 +03:00 |
|
Sandro Martini
|
07b5d6b1b6
|
vweb: add mime type for json static content (#6347)
|
2020-09-11 23:14:44 +03:00 |
|
Sandro Martini
|
39da5eca89
|
vweb: hide debug prints
|
2020-08-31 19:39:46 +02:00 |
|
florin
|
b1a8e1e5b2
|
vweb: escape form key, not only value. (#6269)
|
2020-08-30 19:09:12 +02:00 |
|
spaceface777
|
eff319f869
|
comp_for: allow checking full mehod and arg types (#5997)
|
2020-08-27 15:00:44 +02:00 |
|
Delyan Angelov
|
2ad2b4c5ba
|
vweb: add more tests. Fix missing Content-Length: header bug on 404.
|
2020-08-14 02:49:15 +03:00 |
|