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

549 Commits

Author SHA1 Message Date
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
Ryan Roden-Corrent
a368800b26
net.urllib: don't crash on str() if url is missing host (#10313) 2021-06-02 16:12:27 +03:00
Delyan Angelov
eac1e25c5d
strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
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 bools 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
Nick Treleaven
4ccf991f61
checker: warn when casting a fixed array (use &arr[0] instead) (#8787) 2021-02-17 20:45:11 +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
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
Uwe Krüger
374739b804
all: rename [ref_only] -> [heap] (#8718) 2021-02-13 16:52:01 +02:00
bettafish04
0b777c68c3
net: fix unix sockets (#8697) 2021-02-12 20:10:06 +02:00
Delyan Angelov
58393bd3f9
ci: fix unix_test.v on unix != macos 2021-02-12 01:12:42 +02:00
Delyan Angelov
89521584a2 ci: fix unix sockets test on macos 2021-02-11 22:34:38 +02:00
bettafish04
9b4f2edbfa
net: move unix socket code to net.unix and skip net/unix/unix_test.v … (#8681) 2021-02-11 18:51:12 +02:00
Delyan Angelov
ea401b1192
ci: #include <afunix.h> in vlib/net/net_windows.c.v 2021-02-11 12:45:25 +02:00
bettafish04
d4f6488afd
net: add better unix socket support (#8651) 2021-02-11 01:24:15 +01:00
bettafish04
1a2ae0aead
net: add basic unix socket support (#8642) 2021-02-08 23:48:23 +01:00
zakuro
e30e794884
checker: add check for using a private const in another module (#8501) 2021-02-03 10:17:13 +02:00
yuyi
91af2418de
ftp: minor optimization in dir() (#8518) 2021-02-02 18:51:55 +01:00
Delyan Angelov
d57a9c419d
examples: add net_udp_server_and_client.v 2021-02-02 10:36:56 +02:00
yuyi
5ec6f7a781
ftp: fix error in dir() (#8504) 2021-02-02 08:22:52 +01:00
Swastik Baranwal
e03ece2a4b
checker: check the fn decl for anon fns too (#7529) 2021-01-29 23:11:05 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Delyan Angelov
e0ed224a8d
Revert "net: prevent udp_test.v from running on windows without -d network"
This reverts commit 3526bc3d19.
2021-01-25 19:08:45 +02:00
Delyan Angelov
3526bc3d19
net: prevent udp_test.v from running on windows without -d network 2021-01-25 19:02:19 +02:00
Alexander Medvednikov
d991712b3c gg: native rendering mode on macOS 2021-01-23 10:25:43 +01:00
Daniel Däschle
dbf84520f1
all: update assoc syntax (#8274) 2021-01-22 23:24:48 +01:00
Delyan Angelov
d92f5c55ba
net: use mut and refs as receivers consistently (#8205) 2021-01-20 11:11:01 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Delyan Angelov
ef18fb837c
net.urllib: workaround an autofree bug for if cond && opt() { 2021-01-12 16:29:04 +02:00
Daniel Däschle
3289dff7ff
checker: require explicit return none (#8060) 2021-01-12 11:43:55 +01:00
Tomas Hellström
cc17f145c5
websocket: make compile with autofree (#8023) 2021-01-11 09:03:10 +01:00
Delyan Angelov
a0b8191a94
net: cleanup unused time imports in tests 2021-01-10 18:59:06 +02:00
Swastik Baranwal
9291fb5e0c
checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
yuyi
ad79d55a5c
ftp: fix an error (#7930) 2021-01-07 20:21:47 +01:00
yuyi
f751271e4e
ftp: fix error of ftp.connect() (fix parts of #7914) (#7915) 2021-01-06 19:53:25 +02:00
Alexander Medvednikov
5a70eba8e1 all: byte.str() => byte.ascii_str() 2021-01-05 19:14:37 +01:00
Nick Treleaven
3203a124b2
checker: warn when casting between reference types outside of unsafe (#7892) 2021-01-05 17:02:04 +02:00
Delyan Angelov
81fd49642a
net: restore back the blocking TcpConn.read_line() method for simplicity 2020-12-29 17:51:16 +02:00
Delyan Angelov
17e0a65611
net: add support for -d trace_tcp to ease debugging 2020-12-29 15:41:46 +02:00
Joe Conigliaro
dbad60acbf
net: use non versioned paths for openssl on mac arm64 2020-12-28 10:32:35 +11: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
3e85c759aa
net: fix udp default timeouts 2020-12-15 18:31:39 +02: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
Tomas Hellström
3eb1550b43
x.websocket: Fixes wss connection failures to certain addresses (#7247) 2020-12-11 02:04:12 +02:00
Ned Palacios
b952bf2e6b
net.html: polish module, update docs (#7193) 2020-12-09 20:08:15 +01:00
Delyan Angelov
91e18b039c
net: fix cross compilation with mingw, Ws2tcpip.h => ws2tcpip.h 2020-12-07 10:41:42 +02:00
João Victor Oliveira Couto
cb5f75c7bf
net.html: change license in readme (#7157) 2020-12-06 05:11:43 +01:00
joe-conigliaro
a05408b49a
all: make type system use source name & cleanup storing name in fields 2020-12-06 14:55:08 +11:00
Alexander Medvednikov
e2e0c625f1 net: add openssl header dir on arm64 macs 2020-12-05 20:27:16 +01:00
Alexander Medvednikov
98034e5504 http: make download_file() return an optional 2020-11-24 18:07:08 +01:00
Tomas Hellström
155aa6dac5
x.websocket: fix autobahn tests for wss and wss close behavor (#6901) 2020-11-21 15:45:45 +02:00
Takahiro Yaota
f47c2468bb
net: fix socket.read_line with long lines #6842 2020-11-20 15:24:41 +01:00
Lukas Neubert
df4165c7ee
docs_ci: check all md files except thirdparty (#6855) 2020-11-18 18:28:28 +01:00
Delyan Angelov
05933e783d net: add back some lower level client/server tcp tests 2020-11-16 09:59:37 +02:00
Emily Hudson
cd2a2cef25
vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
Takahiro Yaota
5069be04a2
net: improve socket_test (#6822) 2020-11-14 08:23:22 +02:00
pancake
2994e7150f
vweb: check function and route parameter count (#6761) 2020-11-08 09:14:24 +01:00
Delyan Angelov
dab66593fc vlib: run vfmt over vlib files, so that v doc -m vlib/ can run without warnings 2020-10-21 12:54:10 +03:00
Delyan Angelov
9309a07438 net.openssl: update custom missing headers message 2020-10-17 19:30:50 +03:00
Delyan Angelov
3c2202572b
cgen: produce cleaner error on missing C headers (with optional explanation) (#6637)
Implements support for `#include <openssl/rand.h> # Please install OpenSSL`.
2020-10-17 18:27:06 +03:00
Delyan Angelov
eab0974e7d net: allow more accurate profiling, using res := C.xxx return res instead of return C.xxx 2020-10-16 00:43:55 +03:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Delyan Angelov
28dea17065 ci: prevent Periodic failure, ensure VSMTP_TEST_USER/VSMTP_TEST_PASS are set in smtp_test.v 2020-10-13 09:22:28 +03:00
Justin Jones
04d3ca7dbe
http: fix status codes (#6590) 2020-10-09 18:33:16 +03:00
Oghogho Odemwingie
332f3a924c
builtin: consume matched string length in string.replace_each (#6349) 2020-09-12 02:31:06 +02:00
Daniel Däschle
3a146a6dbe
checker: fix error pos on default value (#6338) 2020-09-09 15:34:41 +02:00
Alexander Medvednikov
ea31f75098 checker: more default field fixes 2020-09-09 14:14:44 +02:00
Alexander Medvednikov
3410705974 autofree: lots of fixes 2020-09-05 12:00:35 +02:00
Maciej Obarski
7bd2804ce9
all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
Alexander Medvednikov
8dcc73993e net: remove old websocket module 2020-08-27 07:33:59 +02:00
Daniel Däschle
fcc61a981d
all: TypeSymbol.source_name (#6187) 2020-08-22 12:29:15 +02:00
Tomas Hellström
fb148e0b61
x.websockets: new websockets module on top of x.net (#6189) 2020-08-22 00:50:38 +02:00
Delyan Angelov
e8ff94fb8b net.html: simplify map setting (fixes compilation with tcc on aarch64) 2020-08-20 16:45:54 +03:00
Delyan Angelov
7727aad90f net.http: fix windows compilation warning 2020-08-18 12:14:21 +03:00
Alexander Medvednikov
40d91cc23b gg: handle bad image index 2020-08-18 01:08:58 +02:00
Sandro Martini
dab639662f
http: fix new warnings (#6153) 2020-08-17 20:17:17 +02:00
Nick Treleaven
bab5c21224
parser: warn when fixed-size ArrayInit doesn't have trailing {}. (#6137) 2020-08-16 04:54:05 +02:00
Nick Treleaven
75212f9fab
cgen: error if ForInStmt is not handled (#6131) 2020-08-14 21:01:43 +02:00
Delyan Angelov
36eae1c175
builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
João Victor Oliveira Couto
f6a85d5305
net.html: create html parser module (#6076) 2020-08-09 04:13:34 +02:00
Delyan Angelov
34d03801de tests: run ws_test.v only with -d network 2020-08-07 10:14:40 +03:00
Swastik Baranwal
d56d622a43
checker: add checks for byte casting (#5917) 2020-08-01 23:17:00 +02:00
Carlos Esquerdo Bernat
7b630f0350
ws: send unsolicited pong control frame on connect in ws_test.v (#6010) 2020-07-29 18:11:24 +03:00
Carlos Esquerdo Bernat
2f2463a04c
ws: make Client.state pub mut (#6009) 2020-07-29 17:52:33 +03:00
Carlos Esquerdo Bernat
0539b2a7ea
eventbus: removed check on publish, always use receiver, args, sender order for callbacks (#5940) 2020-07-28 18:48:25 +03:00
Delyan Angelov
228486555c http: add pub to Method.str() 2020-07-28 12:34:29 +03:00
Carlos Esquerdo Bernat
49a7a835c7
ws: update README.md (#5983) 2020-07-28 11:22:03 +03: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
5d49034c31
http: backend_windows - use Method enum in ssl_do() 2020-07-28 14:35:21 +10: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
1f8ae5d12c
websocket: add tests (#5967) 2020-07-25 22:25:31 +02:00
Delyan Angelov
d83e2ee330 websocket: fix compilation after the more strict mutability check 2020-07-24 08:41:14 +03:00
Delyan Angelov
276c1de190 unsafe: tag with unsafe{} some more pointer manipulations 2020-07-22 21:42:51 +03:00
Nick Treleaven
ee349691f9
v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00
Delyan Angelov
ebbc7bd471 examples: fix crash when running examples/ws/client.v outside of valgrind 2020-07-22 18:42:57 +03:00
Carlos Esquerdo Bernat
b0d76c59f7
websocket utf8: move utf8 functions from websocket to encoding.utf8, add utf8_test.v (4/4) (#5924) 2020-07-22 18:36:24 +03:00
Carlos Esquerdo Bernat
635c99e2ed
ws: obtain port when not specified (#5922) 2020-07-22 17:35:30 +03:00
Carlos Esquerdo Bernat
0d8ebf5845
websocket: use log instead submodule logger (1/4) (#5921) 2020-07-22 17:31:22 +03:00
Delyan Angelov
0af415fa28 vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again 2020-07-21 09:05:31 +03:00
Carlos Esquerdo Bernat
6dbc143d67
websocket: move ws example to examples folder (#5875) 2020-07-21 00:55:58 +02:00
Carlos Esquerdo Bernat
60997b3052
net.http: wrap unsafe{} around req.headers.free() (#5891) 2020-07-20 15:39:46 +03:00
Delyan Angelov
e3f7681e89 smtp_test: use assert false return, remove for loop 2020-07-13 18:52:46 +03:00
Delyan Angelov
97d01a5487 test: enable passing username/password through env vars to smtp_test.v 2020-07-13 18:22:36 +03:00
spaceface777
e9c144bf98
smtp: rewrite module api (#5819) 2020-07-13 16:41:23 +02:00
Nedim
8674991bac
smtp: add mail sent confirmation and tests for smtp lib (#5813) 2020-07-12 20:42:11 +03:00
Delyan Angelov
d28a1042a0 net.http, net.websocket: allow importing both in the same app 2020-07-12 15:21:40 +03:00
Nedim
25c397f921
net.smtp: remove credentials from the test (#5808) 2020-07-11 21:19:36 +02:00
Nedim
549c4f54cd
net: implementation of SMTP RFC 2821 (#5807) 2020-07-11 21:05:24 +02:00
Alexander Medvednikov
2e275731a3 websocket: fix compilation 2020-07-11 12:41:37 +02:00
Alexander Medvednikov
649821be4c all: use v_realloc 2020-07-11 12:37:54 +02:00
Alexander Medvednikov
4d7d1eb0c4 http: referer() 2020-07-07 14:37:43 +02:00
Delyan Angelov
1416c70e73 net.websocket: fix building client.v 2020-07-05 18:44:39 +03:00
yuyi
34a24eaa4e
checker: validate loop var names (#5677) 2020-07-05 15:27:37 +02:00
Ryan Willis
bb6ab185c3
ci: fix periodic integration tests (#5666) 2020-07-04 19:52:25 +02:00
Uwe Krüger
3b067f5f85
all: experimental locked concurrency support, part 1 (#5637) 2020-07-04 12:44:25 +02:00
div72
95696559b7
os: fix early termination when saving binary (#5646) 2020-07-04 01:48:01 +02:00
Nick Treleaven
0b49e4db1c
v/checker.v: disallow pointer arithmetic for InfixExpr outside unsafe {} (#5640) 2020-07-03 18:10:10 +02:00
Delyan Angelov
5813d2bf72 net.socket: add s.peer_ip() 2020-07-02 23:02:56 +03:00
Nick Treleaven
e7339fec15
all: disallow pointer arithmetic for AssignStmt, PostfixExpr outside unsafe{} (#5581) 2020-07-01 14:50:17 +02:00
Delyan Angelov
78e1127d99
cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
Louis Schmieder
f3010cbfb2
http: add post function with json as payload (#5580) 2020-06-30 14:36:11 +02:00
Emily Hudson
c84bafbdae
vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax 2020-06-27 21:46:04 +02:00
ka-weihe
7f225f2eaa
map: rename size to len 2020-06-21 16:51:02 +02:00
Delyan Angelov
0d6233cd45 net: support for s.max_single_send_size in Socket.send/2 2020-06-21 17:40:39 +03:00
spaceface777
624005bbd0
tcc_win: fix tests 2020-06-19 12:54:56 +02:00
Ned Palacios
5ff7d07138
vdoc: fix sorting + other minor improvements 2020-06-19 10:36:45 +02:00
Alexander Medvednikov
931bba1d7d net: fix windows urlmon flag 2020-06-10 11:25:41 +02:00
Alexander Medvednikov
c261ac4f46 net: fix windows headers 2020-06-10 11:24:37 +02:00
Hungry Blue Dev
e649cf84e3
rand: reorganize: phase 2 2020-06-09 15:06:07 +02:00
Enzo Baldisserri
11b7b97311
parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
Louis Schmieder
2cad6db9f7
http: fix redirect for servers returning lowercase 'location:' header 2020-06-08 00:01:20 +03:00
Tomas Hellström
9c8769503f
time: add microsecond precision to Time struct 2020-06-07 16:19:09 +03:00
Alexander Medvednikov
13a7ce9e69 gg: GG => Context 2020-06-04 20:26:18 +02:00
yuyi
5ae8853648
all: change f mut Foo to mut f Foo 2020-06-04 10:35:40 +02:00
Uwe Krüger
076089d3c5
checker: apply stricter type checks to function args and return types 2020-06-01 21:15:59 +02:00
Naheel
4fcabb71c4
os: implement cp for nix 2020-06-01 21:11:40 +02:00
Delyan Angelov
4956ca62e3 websocket: move .nonce_size to pub mut: 2020-06-01 20:37:24 +03:00
Delyan Angelov
328a235f94 websocket: add Client.nonce_size field 2020-06-01 20:31:58 +03:00
Delyan Angelov
ae8f7cf569 tests: fix some tests, that failed due to the stricter immutable checks 2020-06-01 18:24:38 +03:00
Delyan Angelov
04ca7efc0c websocket: fix compilation of client.v 2020-05-28 01:38:54 +03:00
Delyan Angelov
a4af4f9fe7 http_test.v: comment yahoo test urls for now 2020-05-27 15:53:57 +03:00
Uwe Krüger
013fdb8a4b
checker: restrict numeric promotions to cases where no data is lost 2020-05-27 05:42:48 +02:00
Enzo Baldisserri
145b125155
websocket: make compile 2020-05-26 12:50:37 +02:00
Enzo Baldisserri
d22609051a
checker: CallExpr with handled optional returns plain type 2020-05-25 11:32:14 +02:00
Delyan Angelov
06540f0e91 net: fix warnings due to uppercase consts 2020-05-24 07:39:47 +03:00
yuyi
4608898bcd
checker: fix multiple assign immutable error 2020-05-23 17:30:28 +02:00
yuyi
dda875a9c8
all: unify const names to snake_case 2020-05-22 17:36:09 +02:00
Alexander Medvednikov
ca81442fac parser: fix a small bug with < 2020-05-20 21:47:03 +02:00
Delyan Angelov
e3a162db77 http: remove redundant consts in backend_nix.c.v 2020-05-20 21:40:29 +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
ac396ea02f http: cleanup backend_nix.c.v, fixes vpm too 2020-05-20 12:04:28 +03:00
Delyan Angelov
1c2376741b http: fix redirects handling 2020-05-20 09:58:57 +03:00
Alexander Medvednikov
0a6d709ce2 http: fix recent changes; picoev: make compile 2020-05-20 05:37:03 +02:00
Uwe Krüger
2635be511f
all: re-apply C++ support 2020-05-18 21:38:06 +02:00
Alexander Medvednikov
07a78b2843 Revert "all: C++ compiler support"
This reverts commit 9a237c3e82.
2020-05-18 17:05:48 +02:00
Uwe Krüger
9a237c3e82
all: C++ compiler support 2020-05-18 15:51:36 +02:00
Alexander Medvednikov
4f307c1a78 checker: requre & in struct init; http: chunked encoding 2020-05-18 05:11:00 +02:00
yuyi
7f4cf08516
parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
Enzo Baldisserri
f44a40eee0
checker: check incorrect names 2020-05-16 16:12:23 +02:00
Delyan Angelov
034bf46e4d vlib: remove unused arrays module 2020-05-16 00:20:14 +03:00
Alexander Medvednikov
e5d4786371 builder: simplify C error message 2020-05-14 18:14:38 +02:00
Alexander Medvednikov
ce03761375 parser: fix mut args with the new syntax; checker: fmt 2020-05-11 14:16:20 +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
Alexander Medvednikov
32a7bd3a48 parser/checker: do not allow using private types from other modules 2020-05-04 21:56:41 +02:00
Tim Basel
3e4cd12fd0
.gitignore: ignore all binary files by default 2020-04-29 16:49:13 +02:00
jm-duro
210b6e36b6
http: mutable request fields 2020-04-28 13:57:48 +02:00
yuyi
2574dce174
all: fix remaining []array warnings 2020-04-26 16:25:54 +02:00
yuyi
9f4d498ff1
all: updateimport () and []array 2020-04-26 13:49:31 +02:00
yuyi
541b058e90
all: use a !in b instead of !(a in b) 2020-04-26 06:39:23 +02:00
Delyan Angelov
cd27300d75 cookie: fix a new match error about redundant else 2020-04-25 23:02:04 +03:00
Delyan Angelov
19d7553d67 tests: fix vlib/net/http/cookie_test.v 2020-04-25 22:53:18 +03:00
Junya Okuno
5600fd8613
net.http: remove redundant httponly handling 2020-04-25 06:15:05 +02:00
Leah Lundqvist
f3e3d7e0c5
websocket: update to work with latest V 2020-04-24 07:32:51 +02:00
Delyan Angelov
adb8fb1dc6 comptime: fix custom -d flags and $if x? {}. Fixes ftp_test.v . 2020-04-23 17:52:44 +03:00
yuyi
4e1abc8503
all: remove commas between enum vals 2020-04-23 01:16:16 +02:00
Alexander Medvednikov
df37597f00 tests: disable cookie test for now 2020-04-14 03:43:59 +02:00
Chris Watson
c6c2fccb23
net.http: add cookie support 2020-04-14 03:34:05 +02:00
lutherwenxu
dc4db87be3
vlib: use new filename format 2020-04-11 19:51:32 +02:00
Alexey
d078e6bb08
net: check if socket descriptor is valid 2020-04-11 19:06:01 +02:00
Delyan Angelov
fdac3a1f2e ftp.v: fix compilation 2020-04-10 23:23:42 +03:00
Delyan Angelov
217e6f3b8e checker/parser: allow for fixed array with sizes defined with a const 2020-04-10 22:01:22 +03:00
Alexander Medvednikov
d7ae9d7279 cgen: optional fixes; make http compile 2020-04-09 14:03:47 +02:00
Alexander Medvednikov
3521b7ff89 websocket: fmt example + minor fixes 2020-04-08 21:21:58 +02:00
Abdullah Atta
6f8f8d7b1b
websocket: eventbus and other cleanup 2020-04-08 21:19:01 +02:00