Commit Graph

162 Commits (e18cb9748f7cc19abe11bcf6c834c38f46102722)

Author SHA1 Message Date
Alexander Medvednikov fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov 258d1f77dc net: fix byte buffers 2022-04-15 15:57:45 +03:00
Alexander Medvednikov af73e195da net: byte fixes 2022-04-15 15:55:39 +03:00
Alexander Medvednikov fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
Alexander Medvednikov d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Delyan Angelov 566f150b24
net.http: add parse_request_head/1, cleanup existing code 2022-04-15 10:33:44 +03:00
Nick Treleaven 7231a3f135
vlib: add `mut` for the first parameter of builtin.copy, arrays.copy and crypto (#13702) 2022-03-09 20:26:00 +02:00
Delyan Angelov 10474f35f6
net.http: clarify error message in Request.ssl_do 2022-03-08 18:17:34 +02:00
Alexander Medvednikov 36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Tim Basel 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
Vincenzo Palazzo 0d1d259bb4
net.urllib: keep the query parameter order (#13405) 2022-02-09 17:36:12 +02:00
JalonSolov 01c72d44e8
net.http: add allow_redirect to FetchConfig (#13285) 2022-01-26 17:13:10 +02:00
Delyan Angelov 1cea7b0c73
ci: vfmt vlib/net/http/request.v 2022-01-24 14:33:12 +02:00
ZoaR 4ba9a2ffbe
net.http: implement a Request.allow_redirect field (true by default) (#13259) 2022-01-24 14:00:30 +02:00
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Delyan Angelov 6d97b0a407
checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
Delyan Angelov 3c6356ba36
ci: fix request_test.v (add missing \r to hardcoded post data) 2021-11-10 18:16:15 +02:00
Delyan Angelov 466ced2876
net.http: fix multipart/form-data file upload handling 2021-11-10 17:31:41 +02:00
Miccah 655b5c563a
net.http: use `[params]` for Config structs (#12299) 2021-10-26 10:45:27 +03:00
Delyan Angelov d9c6c9a7df
http: cleanup download_file, remove unimplemented download_file_with_progress 2021-10-24 17:19:44 +03:00
Alexander Medvednikov e6b7ab8b9d net.http: authority header 2021-10-17 06:40:19 +03:00
Alexander Ivanov 0386f2bbea
checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
Anton Zavodchikov 4c8094d0d9
net.http: make public errors and parse_form (#12038) 2021-10-02 15:28:35 +03:00
Anton Zavodchikov 600880660a
net.http: add a deprecated attribute for un/escape functions (#12037) 2021-10-02 15:19:32 +03:00
Alexander Medvednikov c2f535fee1 ci: run the gitly web server test 2021-09-29 19:26:49 +03:00
Miccah 956fdffd96
net.http: allow custom headers in post_multipart_form (#11971) 2021-09-25 10:09:49 +03:00
yuyi 108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Miccah ead5e66afd
net.http: add post_multipart_form function (#11511) 2021-09-16 07:34:07 +03:00
Daniel Däschle b63ec8fbcf
checker: require `params` attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
Alexander Medvednikov 90e04d03b2 net.http: fix request_test.v 2021-09-11 06:16:00 +03:00
Alexander Medvednikov 1546090131 vweb: remove a duplicate function parse_multipart_form 2021-09-11 04:21:10 +03:00
Alexander Medvednikov d1e9aa49ea net.http: in memory cert verification 2021-09-09 19:55:57 +03:00
yuyi e5360e164a
fmt: remove unnecessary parentheses after `return` (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
Enzo e3b65092d6
parser: deprecate `size_t` (#11443) 2021-09-08 13:09:32 +03:00
Alexander Medvednikov 577fedfce1 net.http: fix a bug with ? in new_request 2021-09-08 05:11:02 +03:00
Delyan Angelov 56993b9e2d
net.http: support passing client certificates in http.fetch (#11356) 2021-09-01 01:43:35 +03:00
Fabricio Pashaj 0bf9197f41
net.http: add a close method to immediatly close the listener of a started http.Server, add more tests (#11248) 2021-08-24 19:21:24 +03:00
Miccah 51d7aede68
net.http: render each header value on a newline (#11270) 2021-08-23 00:38:09 +03:00
Miccah 2cb0db633d
vweb: use Response struct for 302 response (#11245) 2021-08-20 01:13:36 +03:00
Miccah 6991a3c8d5
net.http: add graceful shutdown .stop() method to the http.Server struct (#11233) 2021-08-19 11:19:49 +03:00
Delyan Angelov f96b81b53a
ci: fix failing vweb_test.v 2021-08-17 18:57:04 +03:00
Alexander Medvednikov f8174c381c net.http: simplify fetch() 2021-08-17 09:17:03 +03:00
Daniel Däschle 800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
Miccah cc9463401e
http: change server handler from function to interface (#10994) 2021-08-01 15:50:11 +03:00
Miccah a0e27d3fd9
net.http: refactor the Response struct (#10922) 2021-07-24 20:47:45 +03:00
Miccah 0acb84d5a5
net: add parse_headers function and handle header line folding (#10936)
Closes https://github.com/vlang/v/issues/10930
2021-07-24 11:31:33 +03:00
shadowninja55 7694afa44c
checker: check that `mut` args are lvalues (#10779) 2021-07-13 08:06:39 +03:00
Miccah 3039092b89
net.http: add header_from_map and join functions (#10747) 2021-07-12 12:16:41 +03:00
Miccah 44e78a6301
vweb: use http.Response constants instead of strings (#10730) 2021-07-10 11:58:07 +03:00
shadowninja55 806d6172cb
checker: prohibit casting `void` (#10690) 2021-07-07 21:59:58 +03:00