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

189 Commits

Author SHA1 Message Date
d0fab60981 vweb: refactor routing logic (#9025) 2021-03-01 11:50:52 +01:00
8045395cbd net: document pub structs & functions in http/http.v (#9016) 2021-03-01 10:48:38 +01: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
7e08e84bc1 vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
2f9687d29b net: add HTTP Header struct and methods (#8991) 2021-02-27 22:54:27 +01:00
c03798e390 checker: disallow implicit conversion from fixed array to fooptr (#8823) 2021-02-26 00:28:47 +01:00
b01a302a4e net.http: fix compilation of trivial examples with v -cflags -Werror 2021-02-22 17:11:02 +02:00
b2cdd2cac0 net.http: use .filter in sanitize/2 (#8899) 2021-02-22 14:58:48 +02:00
f54c1a5cc2 all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
0f8edd918a checker: disallow unsafe map copy (#8720) 2021-02-17 05:19:25 +01:00
01aa09d515 checker: do not allow copying any map lvalue (#8662) 2021-02-16 12:46:12 +01: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
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
ac2c3847af all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
b47daad40d all: remove redundant array.contains definitions (#7464) 2020-12-22 08:32:32 +01:00
553ecf63e7 vlib/io: fix reader bugs, make read_all take a config struct (#7361) 2020-12-16 18:22:26 +01:00
e3a1756b11 net: add tcp_default_read_timeout and tcp_default_write_timeout and use them consistently 2020-12-15 17:54:51 +02:00
98034e5504 http: make download_file() return an optional 2020-11-24 18:07:08 +01:00
cd2a2cef25 vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
2994e7150f vweb: check function and route parameter count (#6761) 2020-11-08 09:14:24 +01:00
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
04d3ca7dbe http: fix status codes (#6590) 2020-10-09 18:33:16 +03:00
332f3a924c builtin: consume matched string length in string.replace_each (#6349) 2020-09-12 02:31:06 +02:00
3a146a6dbe checker: fix error pos on default value (#6338) 2020-09-09 15:34:41 +02:00
7bd2804ce9 all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
7727aad90f net.http: fix windows compilation warning 2020-08-18 12:14:21 +03:00
dab639662f http: fix new warnings (#6153) 2020-08-17 20:17:17 +02:00
36eae1c175 builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
228486555c http: add pub to Method.str() 2020-07-28 12:34:29 +03:00
28657fe7cb http: handle all of the http.Method values in .str() (#6002) 2020-07-28 10:39:10 +03:00
5d49034c31 http: backend_windows - use Method enum in ssl_do() 2020-07-28 14:35:21 +10:00
395e886b2e http/vweb: use Method enum & add helpers 2020-07-28 14:13:19 +10:00
fec9920b1a http: replace method string with an enum 2020-07-27 21:20:23 +02:00
3d19167628 http: fix cookies (part 2) 2020-07-26 22:01:25 +02:00
cf4235ab65 http: fix cookies 2020-07-26 15:54:21 +02:00
60997b3052 net.http: wrap unsafe{} around req.headers.free() (#5891) 2020-07-20 15:39:46 +03:00
d28a1042a0 net.http, net.websocket: allow importing both in the same app 2020-07-12 15:21:40 +03:00
4d7d1eb0c4 http: referer() 2020-07-07 14:37:43 +02:00
34a24eaa4e checker: validate loop var names (#5677) 2020-07-05 15:27:37 +02:00
bb6ab185c3 ci: fix periodic integration tests (#5666) 2020-07-04 19:52:25 +02:00
95696559b7 os: fix early termination when saving binary (#5646) 2020-07-04 01:48:01 +02:00
f3010cbfb2 http: add post function with json as payload (#5580) 2020-06-30 14:36:11 +02:00
7f225f2eaa map: rename size to len 2020-06-21 16:51:02 +02:00
624005bbd0 tcc_win: fix tests 2020-06-19 12:54:56 +02:00
931bba1d7d net: fix windows urlmon flag 2020-06-10 11:25:41 +02:00
c261ac4f46 net: fix windows headers 2020-06-10 11:24:37 +02:00
2cad6db9f7 http: fix redirect for servers returning lowercase 'location:' header 2020-06-08 00:01:20 +03:00
a4af4f9fe7 http_test.v: comment yahoo test urls for now 2020-05-27 15:53:57 +03:00