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

117 Commits

Author SHA1 Message Date
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
Delyan Angelov
9f6ddb4c21
v.fmt: add an independent Comment.is_inline flag. Use it for fixing [ .. //x ] => [ .. //x, ] 2021-06-18 15:52:31 +03:00
JalonSolov
64f34f6d61
net: return error unless response code was 200 (#10499) 2021-06-18 01:28:40 +03:00
Andreas Heissenberger
b2e2a53f98
net.http: add ability to parametrize the read and write timeouts of a http request (#10482) 2021-06-16 20:21:49 +03:00
JalonSolov
aaa59ac770
net: fix chunked check, remove length workaround (#10472) 2021-06-15 19:28:54 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
JalonSolov
12bb0c236a
net: fix 0 length file if Content-Header is missing or corrupt (#10464) 2021-06-15 07:29:02 +03:00
Delyan Angelov
d7d9305d96
net: vfmt everything 2021-06-14 10:08:41 +03:00
Emily Hudson
535dcac8fa
net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904) 2021-06-13 23:53:38 +03:00
JalonSolov
6e41561124
net: fix download_file (#10439) 2021-06-13 01:40:32 +03:00
Carlos Esquerdo Bernat
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
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
Enzo
906b207e58
checker: deprecate using V strings in C function calls (#10140) 2021-05-20 09:17:44 +03:00
Uwe Krüger
3c0a368af3
all: automatically move (some) referenced objects to heap (#9873) 2021-04-25 21:40:38 +03:00
Delyan Angelov
d4f31412b7
v: deprecate @VROOT in favour of @VMODROOT (#9795) 2021-04-19 19:01:47 +03:00
Delyan Angelov
3e297bced4
ci: remove some tests from skip_with_werror in v test-self 2021-04-14 12:47:24 +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
Miccah
f809d4052f
net.http: change header behavior to keep custom header case (#9602) 2021-04-08 02:12:46 +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
zakuro
e3c0f305b2
os: deprecate os.File.write_bytes and add os.File.write_ptr (#9370) 2021-03-20 09:02:28 +02:00
Alexander Medvednikov
091a1bab27 autofree: free global map consts and some vweb fixes 2021-03-17 01:33:35 +01:00
Miccah
d0fab60981
vweb: refactor routing logic (#9025) 2021-03-01 11:50:52 +01:00
makino
8045395cbd
net: document pub structs & functions in http/http.v (#9016) 2021-03-01 10:48:38 +01:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Miccah
7e08e84bc1
vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
Miccah
2f9687d29b
net: add HTTP Header struct and methods (#8991) 2021-02-27 22:54:27 +01:00
Nick Treleaven
c03798e390
checker: disallow implicit conversion from fixed array to fooptr (#8823) 2021-02-26 00:28:47 +01:00
Delyan Angelov
b01a302a4e
net.http: fix compilation of trivial examples with v -cflags -Werror 2021-02-22 17:11:02 +02:00
Swastik Baranwal
b2cdd2cac0
net.http: use .filter in sanitize/2 (#8899) 2021-02-22 14:58:48 +02:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02: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
Nick Treleaven
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
Nick Treleaven
ea803113c3
checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +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
Alexander Medvednikov
98034e5504 http: make download_file() return an optional 2020-11-24 18:07:08 +01:00
Emily Hudson
cd2a2cef25
vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
pancake
2994e7150f
vweb: check function and route parameter count (#6761) 2020-11-08 09:14:24 +01:00