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

348 Commits

Author SHA1 Message Date
7e08e84bc1 vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03:00
f54c1a5cc2 all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
7a35131721 vweb: add handle static root & documentation (#8865) 2021-02-21 20:01:29 +02:00
ac4791045f time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
746dfe6317 ci: make vweb and websocket tests more robust to transient errors 2021-02-20 20:24:21 +02:00
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
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
374739b804 all: rename [ref_only] -> [heap] (#8718) 2021-02-13 16:52:01 +02:00
40066a5daa checker: obey [ref_only] tag, allow embedding in other ref struct (#8707) 2021-02-13 00:47:37 +01:00
6b431b18f5 vweb.tmpl: fix a little typo (#8704) 2021-02-12 20:06:37 +02:00
86e6b4f926 examples: improve the pg and vweb output (#8640) 2021-02-09 11:31:25 +02:00
9e751f72c4 doc, fmt: use map{key: value} syntax for map literals (#8623) 2021-02-08 16:57:42 +02:00
7f4c582f1a fmt: unwrap long infix exprs inside parenthesis if necessary (#8609) 2021-02-07 23:10:39 +01:00
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
a0cbe48977 vweb: fix @include (#8535) 2021-02-04 17:07:04 +01:00
f4b757e47d examples: add examples/vweb/server_sent_events; implement vweb.sse 2021-02-03 16:03:06 +02:00
4a6642b79e vweb: fix vweb upload (#8392) 2021-01-29 14:48:52 +01:00
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