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

123 Commits

Author SHA1 Message Date
Miccah
6991a3c8d5
net.http: add graceful shutdown .stop() method to the http.Server struct () 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 () 2021-08-04 12:44:41 +03:00
Miccah
cc9463401e
http: change server handler from function to interface () 2021-08-01 15:50:11 +03:00
Miccah
a0e27d3fd9
net.http: refactor the Response struct () 2021-07-24 20:47:45 +03:00
Miccah
0acb84d5a5
net: add parse_headers function and handle header line folding ()
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 () 2021-07-13 08:06:39 +03:00
Miccah
3039092b89
net.http: add header_from_map and join functions () 2021-07-12 12:16:41 +03:00
Miccah
44e78a6301
vweb: use http.Response constants instead of strings () 2021-07-10 11:58:07 +03:00
shadowninja55
806d6172cb
checker: prohibit casting void () 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 () 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 () 2021-06-16 20:21:49 +03:00
JalonSolov
aaa59ac770
net: fix chunked check, remove length workaround () 2021-06-15 19:28:54 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan() where possible () 2021-06-15 14:47:11 +03:00
JalonSolov
12bb0c236a
net: fix 0 length file if Content-Header is missing or corrupt () 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 () 2021-06-13 23:53:38 +03:00
JalonSolov
6e41561124
net: fix download_file () 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 () 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 () 2021-06-06 00:43:14 +03:00
Miccah
c8d5e783a3
net: use custom error for invalid headers () 2021-06-03 09:50:07 +03:00
Enzo
906b207e58
checker: deprecate using V strings in C function calls () 2021-05-20 09:17:44 +03:00
Uwe Krüger
3c0a368af3
all: automatically move (some) referenced objects to heap () 2021-04-25 21:40:38 +03:00
Delyan Angelov
d4f31412b7
v: deprecate @VROOT in favour of @VMODROOT () 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 () 2021-04-09 23:42:25 +03:00
Miccah
5eb67ccd94
http: use Header struct for headers () 2021-04-09 18:17:33 +02:00
Miccah
f809d4052f
net.http: change header behavior to keep custom header case () 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 () 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 () 2021-03-01 11:50:52 +01:00
makino
8045395cbd
net: document pub structs & functions in http/http.v () 2021-03-01 10:48:38 +01:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) () 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax () 2021-02-28 23:20:21 +03:00
Miccah
7e08e84bc1
vweb: refactor HTTP request parsing () 2021-02-27 23:18:25 +01:00
Miccah
2f9687d29b
net: add HTTP Header struct and methods () 2021-02-27 22:54:27 +01:00
Nick Treleaven
c03798e390
checker: disallow implicit conversion from fixed array to fooptr () 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 () 2021-02-22 14:58:48 +02:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write () 2021-02-22 13:18:11 +02:00
Nick Treleaven
0f8edd918a
checker: disallow unsafe map copy () 2021-02-17 05:19:25 +01:00
Nick Treleaven
01aa09d515
checker: do not allow copying any map lvalue () 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 () 2021-02-15 17:15:52 +02:00
Nick Treleaven
ea803113c3
checker: check unsafe V function calls () 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 () 2021-01-18 13:20:06 +01:00