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

188 Commits

Author SHA1 Message Date
a932a8b1ea net.http: make the errors that parse_status_line returns more informative to make diagnosing problems easier 2023-01-31 15:26:08 +02:00
1d4fd53344 net.http: add documentation to http, method, server, and status (#17130) 2023-01-27 13:58:55 +02:00
6a32c81070 tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892) 2023-01-09 23:47:03 +02:00
cb336c7dc7 net.http: remove ending \r from response.status_msg, add more tests 2022-11-20 16:22:43 +02:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
26d643fc5d all: rollback to old interpolation (step 3) (#16380) 2022-11-10 15:05:34 +03:00
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
c6158e4519 all: remove unnecessary IError() casts 2022-10-28 19:08:30 +03:00
098db89b85 encoding.csv: remove unnecessary IError() cast 2022-10-27 11:30:08 +03:00
c9934672c4 http: fix request_test.v 2022-10-27 11:28:44 +03:00
992b502198 db, json, time, term: change optional to result (#16201) 2022-10-26 11:26:28 +03:00
690b2c0b9d doc: more Result fixes 2022-10-24 16:26:19 +03:00
9241b5572b net.http: skip network timeouts on socket accept in the main http.Server loop 2022-10-23 17:08:27 +03:00
f6844e9766 all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
5c716afb39 net.ssl: switch to mbedtls over openssl (#15841) 2022-09-22 16:50:34 +03:00
41dbd12bc4 tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +03:00
46f32fc10c checker: require unsafe for free() 2022-08-20 08:03:07 +03:00
0b1486f014 http: avoid costly string interpolation of resp.body (#15376) 2022-08-08 04:36:45 +03:00
b01f71d9da io: migrate the Reader API to Result instead of Option (#15229) 2022-08-08 02:33:25 +03:00
1d462136bc net.http: cookie parsing fixes (#14420) 2022-06-07 12:52:43 +03:00
41414b5d5f vlib: add net.http.mime (#14516) 2022-06-02 18:07:25 +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
9e09b709e3 net.http: fix crash on Windows when using Boehm GC (#14351) 2022-05-10 14:00:55 +03:00
ce99a306c0 net.http: make parse_form return POST requests with json data as a map with a json key, containing the json payload (#14289) 2022-05-06 20:23:36 +03:00
563469ed9f vfmt: fix array_init line wrapping (#14154) 2022-04-25 08:11:44 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
258d1f77dc net: fix byte buffers 2022-04-15 15:57:45 +03:00
af73e195da net: byte fixes 2022-04-15 15:55:39 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
566f150b24 net.http: add parse_request_head/1, cleanup existing code 2022-04-15 10:33:44 +03:00
7231a3f135 vlib: add mut for the first parameter of builtin.copy, arrays.copy and crypto (#13702) 2022-03-09 20:26:00 +02:00
10474f35f6 net.http: clarify error message in Request.ssl_do 2022-03-08 18:17:34 +02:00
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +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
0d1d259bb4 net.urllib: keep the query parameter order (#13405) 2022-02-09 17:36:12 +02:00
01c72d44e8 net.http: add allow_redirect to FetchConfig (#13285) 2022-01-26 17:13:10 +02:00
1cea7b0c73 ci: vfmt vlib/net/http/request.v 2022-01-24 14:33:12 +02:00
4ba9a2ffbe net.http: implement a Request.allow_redirect field (true by default) (#13259) 2022-01-24 14:00:30 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
6d97b0a407 checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
3c6356ba36 ci: fix request_test.v (add missing \r to hardcoded post data) 2021-11-10 18:16:15 +02:00
466ced2876 net.http: fix multipart/form-data file upload handling 2021-11-10 17:31:41 +02:00
655b5c563a net.http: use [params] for Config structs (#12299) 2021-10-26 10:45:27 +03:00
d9c6c9a7df http: cleanup download_file, remove unimplemented download_file_with_progress 2021-10-24 17:19:44 +03:00
e6b7ab8b9d net.http: authority header 2021-10-17 06:40:19 +03:00
0386f2bbea checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
4c8094d0d9 net.http: make public errors and parse_form (#12038) 2021-10-02 15:28:35 +03:00
600880660a net.http: add a deprecated attribute for un/escape functions (#12037) 2021-10-02 15:19:32 +03:00