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

153 Commits

Author SHA1 Message Date
86778d06b1 net.http: add a Header.starting_with method, to get the first header, starting with a key (#10119) 2021-06-07 11:18:40 +03:00
aea93c3a96 net.http: vfmt and remove unused ws_func 2021-06-06 01:51:49 +03:00
c2981de4d5 http: add server.v and organize HTTP request and response code (#10355) 2021-06-06 00:43:14 +03:00
c8d5e783a3 net: use custom error for invalid headers (#10323) 2021-06-03 09:50:07 +03:00
906b207e58 checker: deprecate using V strings in C function calls (#10140) 2021-05-20 09:17:44 +03:00
3c0a368af3 all: automatically move (some) referenced objects to heap (#9873) 2021-04-25 21:40:38 +03:00
d4f31412b7 v: deprecate @VROOT in favour of @VMODROOT (#9795) 2021-04-19 19:01:47 +03:00
3e297bced4 ci: remove some tests from skip_with_werror in v test-self 2021-04-14 12:47:24 +03:00
6c1a43415e net.http: make http.parse_response() public so it can be used by http servers (#9653) 2021-04-09 23:42:25 +03:00
5eb67ccd94 http: use Header struct for headers (#9462) 2021-04-09 18:17:33 +02:00
f809d4052f net.http: change header behavior to keep custom header case (#9602) 2021-04-08 02:12:46 +02:00
683eaad66f net.http: support -d trace_http_request and -d trace_http_response 2021-03-30 18:11:00 +03:00
e3c0f305b2 os: deprecate os.File.write_bytes and add os.File.write_ptr (#9370) 2021-03-20 09:02:28 +02:00
091a1bab27 autofree: free global map consts and some vweb fixes 2021-03-17 01:33:35 +01:00
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