1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

330 Commits

Author SHA1 Message Date
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
dbaccd4272 vfmt: shorten main.const_name to just const_name 2021-01-25 20:57:33 +02:00
728344ff65 ci: fix v test-cleancode 2021-01-25 12:55:01 +02:00
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
d8c94cd1fd vweb: make multipart Content-Type header detection case-insensitive (#8255) 2021-01-21 21:16:25 +02:00
f7c251f8f3 vweb: add multipart/form-data parser and file upload (#8160) 2021-01-21 11:08:51 +01:00
b44ec4921f vweb: make vweb async (#8095) 2021-01-21 11:08:38 +01:00
d92f5c55ba net: use mut and refs as receivers consistently (#8205) 2021-01-20 11:11:01 +01:00
97ebecc5f4 usecache: get all tests running with -usecache enabled by default (p.1) (#7699) 2021-01-20 06:04:59 +01:00
ac2c3847af all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
38881e4b20 vweb: Implement chunked encoding transfer (#8179) 2021-01-18 13:04:21 +01:00
16c9cbce7c fmt: correctly increase f.line_len for write_indent (#8174) 2021-01-18 06:02:29 +01:00
53941c4a0a fmt: fix if cond break readability (#8132) 2021-01-16 02:12:17 +01:00
254df0ca62 fmt: improve string quotes (#8075) 2021-01-13 06:05:27 +01:00
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
d96a1b8a5f fmt: intelligent newlines for trailing arg syntax (#7748) 2021-01-10 17:39:37 +01:00
1b07710ab3 vweb: make html() return Result 2021-01-08 05:05:29 +01:00
352cf91ba2 vweb: remove return vweb.Result{} everywhere 2021-01-08 04:57:02 +01:00
e3f8d448c1 all: [noinit] struct attribute 2021-01-08 04:49:16 +01:00
ea4981df90 vweb.tmpl: update README.md with @js directive (#7791) 2021-01-06 20:05:32 +02:00
42e60b8e27 vweb: fix array.last usage (#7905) 2021-01-06 01:24:36 +01:00
9f74be4cf6 vweb: route to index dynamically (#7782) 2021-01-05 01:30:27 +01:00
dd516858d4 fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
89bbbe0ec0 vweb: vfmt vweb.v 2021-01-03 17:03:18 +01:00
c1e0e01f8f vweb: simplify the [post] pub fn no routing fix check 2021-01-02 13:47:54 +02:00
d912ff165b ci: fix failing vweb test, increase timeout for vweb_test_server.v, add VWEB_LOGFILE 2021-01-02 13:33:26 +02:00
f7135979f5 vweb: fixed req type without path (#7792) 2021-01-01 21:57:45 +01:00
7496c74f7e vweb: add [post] test 2021-01-01 21:29:17 +01:00
ac22fe998a vweb: default init methods (#7779) 2021-01-01 17:24:54 +01:00
2bc9ee4d88 vweb: more updates 2020-12-31 17:47:20 +01:00
2533c706ae vweb: migrate all tests and examples to the new syntax 2020-12-31 17:22:47 +01:00
3ffdcd8910 vweb: embed context 2020-12-31 17:07:27 +01:00
d563261e58 vweb: run vfmt, add it to v test-cleancode 2020-12-27 11:38:12 +02:00
b1f6ff8871 ci: fix failing vweb_routing_checks.vv 2020-12-20 11:59:38 +02:00
d96dcefb06 vweb: http methods check (#7371) 2020-12-18 07:34:06 +01:00
553ecf63e7 vlib/io: fix reader bugs, make read_all take a config struct (#7361) 2020-12-16 18:22:26 +01:00
4500aade95 vweb: fix scan_static_directory (#7275) 2020-12-12 19:13:43 +02:00
df4165c7ee docs_ci: check all md files except thirdparty (#6855) 2020-11-18 18:28:28 +01:00
cd2a2cef25 vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
2dc9a45e06 vfmt: fix eating of app.$method(vars); format vlib/vweb/vweb.v 2020-11-14 13:55:10 +02:00
2994e7150f vweb: check function and route parameter count (#6761) 2020-11-08 09:14:24 +01:00
b14f779853 vweb: add a placeholder for checking route validity at startup 2020-11-05 22:59:11 +02:00
a0bf796926 autofree: handle SelectorExpr and fix json 2020-11-02 00:57:45 +01:00
dca3d13606 autofree: another lambda fix 2020-10-30 00:43:04 +01:00
dab66593fc vlib: run vfmt over vlib files, so that v doc -m vlib/ can run without warnings 2020-10-21 12:54:10 +03:00
3c2202572b cgen: produce cleaner error on missing C headers (with optional explanation) (#6637)
Implements support for `#include <openssl/rand.h> # Please install OpenSSL`.
2020-10-17 18:27:06 +03:00
d261844da0 vweb: fix warnings about fn f(x, y Type) 2020-10-15 22:04:42 +03:00
7da1afa140 all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests 2020-10-15 12:32:28 +02:00
3795aaab5c v test-fmt: reformat some skipped files, comment on the remaining ones 2020-10-15 00:39:09 +03:00
d56072eb53 vweb: fix/remove todos from assets tests (#6593) 2020-10-10 00:54:46 +02:00