yuyi
|
992b502198
|
db, json, time, term: change optional to result (#16201)
|
2022-10-26 11:26:28 +03:00 |
|
Alexander Medvednikov
|
690b2c0b9d
|
doc: more Result fixes
|
2022-10-24 16:26:19 +03:00 |
|
Wertzui123
|
340611c298
|
net: add a net.tcp_socket_from_handle_raw function (#16167)
|
2022-10-23 22:21:46 +03:00 |
|
Delyan Angelov
|
9241b5572b
|
net.http: skip network timeouts on socket accept in the main http.Server loop
|
2022-10-23 17:08:27 +03:00 |
|
Makhnev Petr
|
2f3c4c6d91
|
v fmt: fix extra space for lock/rlock without expressions (#16103)
|
2022-10-19 12:18:21 +03:00 |
|
Delyan Angelov
|
409a4f33a1
|
tools: add report_v_module_folders_without_tests.v . Use it to discover other modules without _test.v files. Add simple ones, to ensure CI can find more breakage on future wide changes to vlib/
|
2022-10-16 22:40:17 +03:00 |
|
Delyan Angelov
|
17800b4bca
|
ci: fix net.openssl, ensure that it is at least compiled, to avoid future regressions on sweeping vlib changes
|
2022-10-16 20:59:04 +03:00 |
|
yuyi
|
f6844e9766
|
all: change optional to result of io (#16075)
|
2022-10-16 09:28:57 +03:00 |
|
Thomas Peißl
|
0f229874a2
|
net.mbedtls: add explicit closing of the tcp connection in the shutdown method (#16027)
|
2022-10-10 19:30:58 +03:00 |
|
Swastik Baranwal
|
267e26ba1d
|
net: add unsafe block to int -> enum cast (#15961)
Fixes https://github.com/vlang/v/issues/15959
|
2022-10-03 21:56:06 +03:00 |
|
Swastik Baranwal
|
9fc64de94b
|
openssl: add unsafe blocks to int -> enum blocks (#15957)
|
2022-10-03 16:32:37 +03:00 |
|
Swastik Baranwal
|
b584e1df98
|
checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932)
|
2022-10-02 22:39:11 +03:00 |
|
Delyan Angelov
|
3b420a8d7f
|
net.urllib: add a URL.debug() method, returning the values of all the URL's fields
|
2022-09-29 10:38:11 +03:00 |
|
TSURUTA Takumi
|
e72d259903
|
change Values struct to public (#15902)
|
2022-09-28 16:21:33 +03:00 |
|
spaceface
|
5c716afb39
|
net.ssl: switch to mbedtls over openssl (#15841)
|
2022-09-22 16:50:34 +03:00 |
|
Alfie Ranstead
|
27305d1a5f
|
net.websocket: swap unsafe use of nil for a safe default value (#15836)
|
2022-09-22 08:00:03 +03:00 |
|
yuyi
|
41dbd12bc4
|
tests: make error handling the same as the main function (#15825)
|
2022-09-21 19:45:43 +03:00 |
|
Delyan Angelov
|
f922ed0941
|
tests: unify all temporary files/folders under $VTMP/v , that can be cleaned by v wipe-cache (#15774)
|
2022-09-16 04:56:19 +03:00 |
|
shove
|
8b962f8446
|
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752)
|
2022-09-15 07:59:31 +03:00 |
|
Emin Arıcan
|
7672725204
|
net: fix typo (#15688)
|
2022-09-07 16:35:28 +03:00 |
|
shove
|
f285ebd91c
|
smtp: add base64 encoding to the body of the emails and use utf8, to prevent format confusion (#15589)
|
2022-08-29 09:19:46 +03:00 |
|
yuyi
|
c662431cfd
|
checker: check unsafe array assign (fix #9651) (#15515)
|
2022-08-25 08:52:13 +03:00 |
|
shove
|
6ff753745f
|
smtp: send mail to multiple recipients. #15508 (#15509)
|
2022-08-23 20:50:41 +03:00 |
|
Delyan Angelov
|
499ab9bedb
|
tests: make tcp_self_dial_from_many_clients_test.v more robust (use shared ctx )
|
2022-08-20 13:32:59 +03:00 |
|
Alexander Medvednikov
|
46f32fc10c
|
checker: require unsafe for free()
|
2022-08-20 08:03:07 +03:00 |
|
Delyan Angelov
|
26986eb2f8
|
tests: fix deprecation warning in tcp_test.v
|
2022-08-15 15:17:00 +03:00 |
|
Joe Conigliaro
|
f557acf76b
|
net.urllib: fix ipv6 address parsing [ipv6]:port closes #15309
|
2022-08-13 00:50:38 +10:00 |
|
jrfondren
|
0b1486f014
|
http: avoid costly string interpolation of resp.body (#15376)
|
2022-08-08 04:36:45 +03:00 |
|
Vincenzo Palazzo
|
b01f71d9da
|
io: migrate the Reader API to Result instead of Option (#15229)
|
2022-08-08 02:33:25 +03:00 |
|
Emily Hudson
|
fd1b6efea6
|
net: add failed addresses + details on connect errors, make connect more robust in the default non blocking mode (#15364)
|
2022-08-07 10:40:05 +03:00 |
|
yuyi
|
0bf23488dc
|
checker: check struct field's fn call (fix #15249) (#15257)
|
2022-07-29 19:00:51 +03:00 |
|
Delyan Angelov
|
de0683fe30
|
tests: fix compilation of tcp_test.v
|
2022-07-23 23:33:43 +03:00 |
|
Delyan Angelov
|
231623b75b
|
ci: vfmt tcp_test.v
|
2022-07-21 22:04:51 +03:00 |
|
shove
|
b4ed5d5f20
|
net: add a net.dial_tcp_with_bind/2 function (#15055) (#15056)
|
2022-07-15 12:38:17 +03:00 |
|
Ken
|
1ae11b41e7
|
net.websocket: make logger configurable (#14998)
|
2022-07-09 17:39:07 +03:00 |
|
Ken
|
a50e0f0522
|
net.websocket: allow timeout to be configured (#14941)
|
2022-07-05 06:40:23 +03:00 |
|
WoodyAtHome
|
34517c340d
|
net: support blocking sockets in TcpSocket.connect (#14849)
|
2022-06-27 11:01:55 +03:00 |
|
yuyi
|
5a79a54fe4
|
all: fix all remaining unsafe 0 (#14856)
|
2022-06-26 17:04:23 +03:00 |
|
Alexander Medvednikov
|
cb60392302
|
examples: fix unsafe 0
|
2022-06-26 07:12:15 +03:00 |
|
yuyi
|
c160ba2a8d
|
checker: stricter mutable reference check (fix #14803) (#14805)
|
2022-06-21 13:23:21 +03:00 |
|
yuyi
|
de136f6baf
|
checker: improve pub struct check (fix #14446) (#14777)
|
2022-06-19 17:42:22 +03:00 |
|
yuyi
|
5efa67906c
|
cgen: sort const array init order (fix #14748) (#14749)
|
2022-06-13 21:09:24 +03:00 |
|
David Valdespino Pavon
|
1d462136bc
|
net.http: cookie parsing fixes (#14420)
|
2022-06-07 12:52:43 +03:00 |
|
Hunam
|
41414b5d5f
|
vlib: add net.http.mime (#14516)
|
2022-06-02 18:07:25 +03:00 |
|
Hunam
|
78d1b7f4ef
|
net.http: Response.text -> Response.body (#14478)
|
2022-05-29 20:27:18 +03:00 |
|
kahsa
|
dd8c96f6bc
|
net.html: use -d debug_html instead of -g , prevent undesired output, while debugging user programs (#14521)
|
2022-05-25 11:23:56 +03:00 |
|
Vincenzo Palazzo
|
17bba712bd
|
checker: ban unsafe pointer/fn comparison (#14462)
|
2022-05-20 18:30:16 +03:00 |
|
Delyan Angelov
|
ca00b59b3f
|
tests: make potential failures in urllib_test.v more informative
|
2022-05-20 08:49:56 +03:00 |
|
David 'Epper' Marshall
|
23568f19da
|
url: fix parse (#14456)
|
2022-05-20 02:58:58 +03:00 |
|
WoodyAtHome
|
c2b763655d
|
net.smtp: handle UTF-8 subjects according to RFC 1342 (#14410)
|
2022-05-16 11:09:36 +03:00 |
|
Larpon
|
5068b8b293
|
ftp: document all public methods (#14408)
|
2022-05-16 08:52:12 +03:00 |
|
WoodyAtHome
|
eeff02a8ee
|
net.openssl: read doesn't block infinitely (#14406)
|
2022-05-16 08:44:34 +03:00 |
|
Daniel Däschle
|
d679146a80
|
fmt: remove space in front of ? and ! (#14366)
|
2022-05-13 06:56:21 +03:00 |
|
Emily Hudson
|
c19b037880
|
net: select with deadlines (#14369)
|
2022-05-12 00:03:48 +03:00 |
|
Isaiah
|
9e09b709e3
|
net.http: fix crash on Windows when using Boehm GC (#14351)
|
2022-05-10 14:00:55 +03:00 |
|
WoodyAtHome
|
a0a3499bdc
|
net.smtp: correct date in smtp body (#14326)
|
2022-05-08 09:15:45 +03:00 |
|
Lathanao
|
ce99a306c0
|
net.http: make parse_form return POST requests with json data as a map with a json key, containing the json payload (#14289)
|
2022-05-06 20:23:36 +03:00 |
|
Delyan Angelov
|
5277ce7dce
|
tests: support for marking _test.v files with // vtest flaky: true , to reduce false positives from the CI
|
2022-04-30 13:30:02 +03:00 |
|
Nick Treleaven
|
d8a5df9044
|
checker: error if smaller signed == unsigned (#14078)
|
2022-04-25 12:09:25 +03:00 |
|
stackotter
|
563469ed9f
|
vfmt: fix array_init line wrapping (#14154)
|
2022-04-25 08:11:44 +03:00 |
|
Alexander Medvednikov
|
fbb9e65c0f
|
all: ~500 more byte=>u8
|
2022-04-15 18:25:45 +03:00 |
|
Alexander Medvednikov
|
ae6a25f44e
|
websocket, utf: u8 fixes
|
2022-04-15 16:24:02 +03:00 |
|
Alexander Medvednikov
|
258d1f77dc
|
net: fix byte buffers
|
2022-04-15 15:57:45 +03:00 |
|
Alexander Medvednikov
|
af73e195da
|
net: byte fixes
|
2022-04-15 15:55:39 +03:00 |
|
Alexander Medvednikov
|
fb192d949b
|
all: replace []byte with []u8
|
2022-04-15 15:35:35 +03:00 |
|
Alexander Medvednikov
|
d4a0d6f73c
|
all: byte => u8
|
2022-04-15 14:58:56 +03:00 |
|
Alexander Medvednikov
|
014c3c97f0
|
all: byte => u8
|
2022-04-15 14:45:52 +03:00 |
|
Delyan Angelov
|
566f150b24
|
net.http: add parse_request_head/1, cleanup existing code
|
2022-04-15 10:33:44 +03:00 |
|
Delyan Angelov
|
8788512c4d
|
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01)
|
2022-04-12 14:56:02 +03:00 |
|
Delyan Angelov
|
9b43713ec5
|
net: simplify TcpListener.accept, use C.accept(l.sock.handle, 0, 0) , since we do not care about the local address of the accepted connection
|
2022-04-12 11:47:41 +03:00 |
|
Delyan Angelov
|
71dc6c224a
|
tests: make vlib/net/udp_test.v more stable, and less noisy on the tests-sanitize-address-gcc job
|
2022-04-02 20:00:26 +03:00 |
|
Cameron Katri
|
3e69d3813b
|
v.builder: fix linker flags for systems with Procursus (#13865)
|
2022-03-30 10:15:52 +03:00 |
|
Nick Treleaven
|
7231a3f135
|
vlib: add mut for the first parameter of builtin.copy, arrays.copy and crypto (#13702)
|
2022-03-09 20:26:00 +02:00 |
|
Delyan Angelov
|
10474f35f6
|
net.http: clarify error message in Request.ssl_do
|
2022-03-08 18:17:34 +02:00 |
|
Alexander Medvednikov
|
36ec47cd20
|
all: replace "NB:" with "Note:" (docs/comments)
|
2022-03-06 20:01:22 +03:00 |
|
kahsa
|
6d57315aca
|
net: fix html dom debug print (#13625)
|
2022-03-01 19:20:40 +02:00 |
|
Subhomoy Haldar
|
114a341f5f
|
rand: simplify rand.PRNG, move to optional types for error handling (#13570)
|
2022-02-23 12:36:14 +02:00 |
|
Delyan Angelov
|
33d379d530
|
ci: vfmt vlib/net/socket.v
|
2022-02-22 15:21:20 +02:00 |
|
gcxfd
|
ee1de06678
|
net: extract a common Socket struct, reuse it by embedding in TcpSocket & UdpSocket (#13559)
|
2022-02-22 10:34:38 +02:00 |
|
yuyi
|
04654ed518
|
parser: check error for defer propagate (fix #13534) (#13536)
|
2022-02-20 12:29:08 +02:00 |
|
gcxfd
|
dbae2d6af4
|
net: add UdpSocket.address() method (#13524)
|
2022-02-19 20:45:55 +02:00 |
|
Delyan Angelov
|
d86b18844e
|
net.unix: use byte() instead of u16() cast for addr.sun_family
|
2022-02-18 13:47:12 +02:00 |
|
Delyan Angelov
|
c9867a9ae4
|
net: ensure that net and net.unix can be imported together in the same program
|
2022-02-18 11:47:56 +02:00 |
|
starryskye
|
6d2a88e31f
|
net.smtp: add STARTTLS and implicit SSL support (#13473)
|
2022-02-16 09:18:51 +02:00 |
|
Delyan Angelov
|
74048e2f17
|
net: simplify the TcpConn.read_line/0 method, accumulate partially read lines, use a string builder, instead of concatenation
|
2022-02-13 22:42:38 +02:00 |
|
Vincenzo Palazzo
|
6ea4f361a1
|
urllib: fixed regression in the set function (#13455)
|
2022-02-13 15:06:00 +02:00 |
|
Tim Basel
|
9d0a5942ac
|
builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041)
|
2022-02-11 15:52:33 +02:00 |
|
Vincenzo Palazzo
|
0d1d259bb4
|
net.urllib: keep the query parameter order (#13405)
|
2022-02-09 17:36:12 +02:00 |
|
Benjamin Stigsen
|
ceb05b163a
|
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313)
|
2022-01-28 20:34:44 +02:00 |
|
Delyan Angelov
|
8491e83e3f
|
ci: bump retries to 8 for vlib/net/tcp_test.v
|
2022-01-28 10:07:37 +02:00 |
|
JalonSolov
|
01c72d44e8
|
net.http: add allow_redirect to FetchConfig (#13285)
|
2022-01-26 17:13:10 +02:00 |
|
Delyan Angelov
|
1cea7b0c73
|
ci: vfmt vlib/net/http/request.v
|
2022-01-24 14:33:12 +02:00 |
|
ZoaR
|
4ba9a2ffbe
|
net.http: implement a Request.allow_redirect field (true by default) (#13259)
|
2022-01-24 14:00:30 +02:00 |
|
Delyan Angelov
|
9e0156b46a
|
net: copy the freebsd address declarations for netbsd, openbsd, dragonfly
|
2022-01-20 20:15:50 +02:00 |
|
kahsa
|
e2a0046849
|
net.html: add Tag.get_tags() (#13102)
|
2022-01-09 16:07:12 +02:00 |
|
Delyan Angelov
|
b778c1d097
|
net: make listen/bind errors more informative
|
2022-01-08 17:02:03 +02:00 |
|
kahsa
|
fca699a439
|
net: add address_android.c.v to fix compilation for Android (#13052)
|
2022-01-06 11:48:30 +02:00 |
|
jeffmikels
|
a60b381d5e
|
docs: adding skeleton README.md files for all vlib modules (#13034)
|
2022-01-05 18:06:08 +02:00 |
|
Delyan Angelov
|
59357e873d
|
math: move the math.mathutil generic min /max /abs fns to math (#13042)
|
2022-01-05 18:02:20 +02:00 |
|
Alexander Medvednikov
|
59ed4be49a
|
all: update copyright year
|
2022-01-04 12:21:12 +03:00 |
|