Commit Graph

61 Commits (e97ebf8cfc3e0b8d45cccf90e3363f0c6ef7a8b2)

Author SHA1 Message Date
JalonSolov 01c72d44e8
net.http: add allow_redirect to FetchConfig (#13285) 2022-01-26 17:13:10 +02:00
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Anton Zavodchikov 600880660a
net.http: add a deprecated attribute for un/escape functions (#12037) 2021-10-02 15:19:32 +03:00
Miccah 956fdffd96
net.http: allow custom headers in post_multipart_form (#11971) 2021-09-25 10:09:49 +03:00
Miccah ead5e66afd
net.http: add post_multipart_form function (#11511) 2021-09-16 07:34:07 +03:00
Alexander Medvednikov d1e9aa49ea net.http: in memory cert verification 2021-09-09 19:55:57 +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
Alexander Medvednikov f8174c381c net.http: simplify fetch() 2021-08-17 09:17:03 +03:00
Alexander Medvednikov aea93c3a96 net.http: vfmt and remove unused ws_func 2021-06-06 01:51:49 +03:00
Miccah c2981de4d5
http: add server.v and organize HTTP request and response code (#10355) 2021-06-06 00:43:14 +03:00
Miccah c8d5e783a3
net: use custom error for invalid headers (#10323) 2021-06-03 09:50:07 +03:00
Don Park 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
Miccah 5eb67ccd94
http: use Header struct for headers (#9462) 2021-04-09 18:17:33 +02:00
Delyan Angelov 683eaad66f
net.http: support `-d trace_http_request` and `-d trace_http_response` 2021-03-30 18:11:00 +03:00
makino 8045395cbd
net: document pub structs & functions in http/http.v (#9016) 2021-03-01 10:48:38 +01:00
Miccah 7e08e84bc1
vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
Nick Treleaven 0f8edd918a
checker: disallow `unsafe` map copy (#8720) 2021-02-17 05:19:25 +01:00
Nick Treleaven 01aa09d515
checker: do not allow copying any map lvalue (#8662) 2021-02-16 12:46:12 +01:00
Delyan Angelov e5a84719ca
all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}` 2021-01-26 16:43:17 +02:00
Lukas Neubert ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
yuyi b47daad40d
all: remove redundant array.contains definitions (#7464) 2020-12-22 08:32:32 +01:00
Emily Hudson 553ecf63e7
vlib/io: fix reader bugs, make read_all take a config struct (#7361) 2020-12-16 18:22:26 +01:00
Delyan Angelov e3a1756b11
net: add tcp_default_read_timeout and tcp_default_write_timeout and use them consistently 2020-12-15 17:54:51 +02:00
Emily Hudson cd2a2cef25
vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
Delyan Angelov 31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Daniel Däschle 3a146a6dbe
checker: fix error pos on default value (#6338) 2020-09-09 15:34:41 +02:00
Maciej Obarski 7bd2804ce9
all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
Sandro Martini dab639662f
http: fix new warnings (#6153) 2020-08-17 20:17:17 +02:00
Carlos Esquerdo Bernat 28657fe7cb
http: handle all of the http.Method values in .str() (#6002) 2020-07-28 10:39:10 +03:00
joe-conigliaro 395e886b2e
http/vweb: use Method enum & add helpers 2020-07-28 14:13:19 +10:00
Alexander Medvednikov fec9920b1a http: replace method string with an enum 2020-07-27 21:20:23 +02:00
Alexander Medvednikov 3d19167628 http: fix cookies (part 2) 2020-07-26 22:01:25 +02:00
Alexander Medvednikov cf4235ab65 http: fix cookies 2020-07-26 15:54:21 +02:00
Carlos Esquerdo Bernat 60997b3052
net.http: wrap unsafe{} around req.headers.free() (#5891) 2020-07-20 15:39:46 +03:00
Alexander Medvednikov 4d7d1eb0c4 http: referer() 2020-07-07 14:37:43 +02:00
yuyi 34a24eaa4e
checker: validate loop var names (#5677) 2020-07-05 15:27:37 +02:00
Louis Schmieder f3010cbfb2
http: add post function with json as payload (#5580) 2020-06-30 14:36:11 +02:00
ka-weihe 7f225f2eaa
map: rename size to len 2020-06-21 16:51:02 +02:00
Louis Schmieder 2cad6db9f7
http: fix redirect for servers returning lowercase 'location:' header 2020-06-08 00:01:20 +03:00
Alexander Medvednikov 80070516fd http: set buffer size to 1536 2020-05-20 19:23:51 +02:00
Alexander Medvednikov 5d08c9d5a8 http: use bufsize const 2020-05-20 19:22:02 +02:00
Delyan Angelov 6eee69f7bc http: cleanup ssl_do, enhance the detection of chunked encoding 2020-05-20 14:32:59 +03:00
Delyan Angelov 1c2376741b http: fix redirects handling 2020-05-20 09:58:57 +03:00
Alexander Medvednikov 4f307c1a78 checker: requre & in struct init; http: chunked encoding 2020-05-18 05:11:00 +02:00
Enzo Baldisserri f44a40eee0
checker: check incorrect names 2020-05-16 16:12:23 +02:00
Alexander Medvednikov e5d4786371 builder: simplify C error message 2020-05-14 18:14:38 +02:00
Alexander Medvednikov a2d120b583 cgen: fix reassignment of optionals 2020-05-10 17:41:33 +02:00
Alexander Medvednikov 10da871743 checker: handle unknown fields in fail_if_immutable 2020-05-10 02:07:15 +02:00
jm-duro 210b6e36b6
http: mutable request fields 2020-04-28 13:57:48 +02:00