Commit Graph

337 Commits (79b97fa3613598520e226172bc84f6f5eb72ba65)

Author SHA1 Message Date
Delyan Angelov 104d9a7c8a
net: cleanup #include directives 2021-05-22 10:53:19 +03:00
Enzo 906b207e58
checker: deprecate using V strings in C function calls (#10140) 2021-05-20 09:17:44 +03:00
Delyan Angelov 9d8489b025 net.openssl: add `-ldl -lpthread` for linux 2021-05-16 08:28:46 +00:00
Alexander Medvednikov ed6ad728d9 vweb: fix serving static files 2021-05-16 04:28:14 +03:00
Delyan Angelov 143c3d4bb4
io: deprecate io.make_reader (not needed anymore) 2021-05-13 10:26:26 +03:00
Don Park aebb551e93
cgen: do full struct initialisation for V structs, fixes invalid data from `map[string]Struct{}['unknown']` (#9878) 2021-04-27 08:18:48 +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 a832bb609a net: support `-d net_blocking_sockets` (workaround a sporadic vex failure) 2021-04-23 17:22:43 +03:00
Delyan Angelov 6f50157abc net: implement a customizable send chunk size limit for TcpConn.write_ptr 2021-04-23 17:22:43 +03:00
Delyan Angelov e6c4c4de3d net: format the output of `-d trace_tcp output` better 2021-04-23 17:22:43 +03:00
Delyan Angelov 1b46f9aa02 net: fix unsafe warnings 2021-04-23 15:31:25 +03:00
Delyan Angelov 669a4ea1be
net: support `-d trace_tcp_data_read` and `-d trace_tcp_data_write` too 2021-04-23 15:12:49 +03:00
Delyan Angelov cf497623dc
net: do `$if trace_tcp ? {` in more functions to help debug web server issues 2021-04-23 14:37:12 +03:00
zakuro 7443179cc8
checker: make use of private enum from outside module an error. (#9821) 2021-04-22 07:07:56 +03:00
Delyan Angelov d4f31412b7
v: deprecate `@VROOT` in favour of `@VMODROOT` (#9795) 2021-04-19 19:01:47 +03:00
pancake 49330af715
net.urllib: fix #9748 out of bounds accesses in unescape() (#9770) 2021-04-19 16:43:35 +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 19b915b105 ci: fix windows-tcc job 2021-04-05 23:35:22 +03:00
Alexander Medvednikov 57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
Delyan Angelov dcab79146b
net.urllib: allow `urllib.parse_query("format=%l")` 2021-03-30 20:19:33 +03: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 c8416f9a54
all: deprecate write_str and replace it with write_string (#9369) 2021-03-20 17:25:51 +01: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 bb79df932b net/os: deprecate write_str() in favor of write_string() 2021-03-19 04:51:31 +03:00
spaceface 624c1f3bcf
cgen: make `bool`s take up a single byte, not 4 (#9352) 2021-03-18 15:23:29 +01:00
Alexander Medvednikov 091a1bab27 autofree: free global map consts and some vweb fixes 2021-03-17 01:33:35 +01:00
Alexander Medvednikov 77d5fcca59 urllib: a temporary autofree fix 2021-03-15 21:12:11 +01:00
Nick Treleaven 446631ceb5
checker: fixed array cannot implicitly convert to fooptr (again) (#9302) 2021-03-15 15:55:07 +02:00
joe-conigliaro 2d73411396
checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03: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
spaceface b9a381f101
all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +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
zakuro d0a64f2da7
net/openssl/websocket: implement io.Writer (#8980) 2021-02-27 10:29:18 +02:00
Miccah d81b6e7805
encoding.base64: change base64 function signatures to use `[]byte` (#8970) 2021-02-26 08:22:12 +02:00
Nick Treleaven c03798e390
checker: disallow implicit conversion from fixed array to fooptr (#8823) 2021-02-26 00:28:47 +01:00
StunxFS 2e381f427a
net.html: use `or {}` in .writeln() method calls (fix #8942) (#8953) 2021-02-25 13:24:30 +01:00
Delyan Angelov fb028abc71
net.unix: make unix_test.v more robust 2021-02-22 17:48:31 +02: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
Delyan Angelov b1209aac1b
ci: fix building of vlib/x/websocket/websocket_test.v 2021-02-21 17:03:25 +02:00
Delyan Angelov bf6e9ff95a
Revert "parser: make duplicated functions an error (#8792)"
This reverts commit 21bf8fe14e.
2021-02-18 09:02:56 +02:00
zakuro 21bf8fe14e
parser: make duplicated functions an error (#8792) 2021-02-17 20:50:10 +01:00