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

58 Commits

Author SHA1 Message Date
9047f7c9a8 vweb: fix parsing of form fields, send with multipart/form-data (by JS fetch) 2023-07-14 16:20:02 +03:00
4174048f96 vweb: add host option to controller (#18303) 2023-05-30 14:22:23 +02:00
76fd55a693 vweb: fix multipart_form parsing (#17953) 2023-04-14 07:07:48 +02:00
3d99f1f2c2 checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
838083e610 vweb: add an overridable .not_found() method, for making a custom 404 page + tests fixes (#17936) 2023-04-12 00:50:03 +03:00
1fe5aca782 vweb: middleware implementation (#17730) 2023-03-26 00:57:42 +01:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
e8e75251b4 vweb: change optional to result in vweb_test (#16412) 2022-11-13 11:57:35 +03:00
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
41dbd12bc4 tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +03:00
fd1b6efea6 net: add failed addresses + details on connect errors, make connect more robust in the default non blocking mode (#15364) 2022-08-07 10:40:05 +03:00
78d1b7f4ef net.http: Response.text -> Response.body (#14478) 2022-05-29 20:27:18 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
9d0a5942ac builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
b2c299da48 vweb: support vweb.run_at(app, localhost, 8099) (#13337) 2022-02-01 18:41:12 +02:00
fa6f7d4c83 os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
8a971c3bf7 ci,vweb: fix hard coded data in vweb_test.v 2021-11-10 18:41:25 +02:00
858ba25d55 os: make chdir() return error 2021-08-28 09:35:39 +03:00
f96b81b53a ci: fix failing vweb_test.v 2021-08-17 18:57:04 +03:00
800c0e5092 vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
a0e27d3fd9 net.http: refactor the Response struct (#10922) 2021-07-24 20:47:45 +03:00
c3c420a41c vweb: remove chunked encoding support in server responses (#10750) 2021-07-13 15:47:16 +03:00
bd539b6427 vfmt: fix string interpolation formatting with multiple ',",\' and \" . 2021-04-20 20:26:06 +03:00
e2be3ec396 vweb: split and parse Content-Type header correctly (#9756) 2021-04-16 08:46:06 +03:00
5eb67ccd94 http: use Header struct for headers (#9462) 2021-04-09 18:17:33 +02:00
b041681c00 tests: bump limits to reduce flakyness on m1 with latest clang 2021-04-05 22:38:55 +03:00
fdcfe397d4 fmt: write empty or blocks the same as empty fn bodies, empty structs, etc (#9136) 2021-03-06 21:04:51 +02:00
6b2c7fd53e fmt: remove tail space when using multiline short arg (#9110) 2021-03-04 12:44:50 +02:00
094936d764 ci: reduce chances of false positives from vweb_test.v on macos 2021-03-03 10:04:12 +02:00
b3a31e7626 vweb: add test for 0 Content-Length hang (#9069) 2021-03-02 21:31:57 +02:00
b712af56fd all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
d63b7bc35a all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
b9a381f101 all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +03:00
3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03: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
9e751f72c4 doc, fmt: use map{key: value} syntax for map literals (#8623) 2021-02-08 16:57:42 +02: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
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
38881e4b20 vweb: Implement chunked encoding transfer (#8179) 2021-01-18 13:04:21 +01:00
d96a1b8a5f fmt: intelligent newlines for trailing arg syntax (#7748) 2021-01-10 17:39:37 +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
d912ff165b ci: fix failing vweb test, increase timeout for vweb_test_server.v, add VWEB_LOGFILE 2021-01-02 13:33:26 +02:00
7496c74f7e vweb: add [post] test 2021-01-01 21:29:17 +01:00
d563261e58 vweb: run vfmt, add it to v test-cleancode 2020-12-27 11:38:12 +02:00