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 |
|
yuyi
|
da989e19ca
|
net: fix errors of new_ip(), new_ip6() and ip6.str() (#13020)
|
2022-01-03 15:10:15 +02:00 |
|
yuyi
|
d5b111ec99
|
net: fix typo in new_ip() (#13017)
|
2022-01-03 08:45:26 +02:00 |
|
Delyan Angelov
|
c26e040d33
|
ci: bump retry count to 5 for tcp_test.v
|
2021-12-26 19:05:05 +02:00 |
|
Delyan Angelov
|
b1622c74b9
|
net.openssl: fix compilation of vpm.v on FreeBSD
|
2021-12-08 10:50:24 +02:00 |
|
Jordan Bonecutter
|
fd4e071621
|
net.openssl: use a pkgconfig directive, instead of a hardcoded path (#12735)
|
2021-12-07 22:11:47 +02:00 |
|
Toby Webb
|
09955b7ce8
|
net.websocket: fix server not listening for IPv4 (#12717)
|
2021-12-06 11:10:25 +02:00 |
|
Miccah
|
799d7b843c
|
net: properly convert IP address C strings to V strings (#12648)
|
2021-12-02 11:18:14 +02:00 |
|
Delyan Angelov
|
6d97b0a407
|
checker: improve checking of a << b, when a and b are numbers (#12589)
|
2021-11-29 03:48:49 +03:00 |
|
Delyan Angelov
|
8e0de2036d
|
net: use vmemset(&hints, 0, int(sizeof(hints))) , instead of zeroing the fields 1 by 1
|
2021-11-24 09:34:48 +02:00 |
|
Delyan Angelov
|
3c6356ba36
|
ci: fix request_test.v (add missing \r to hardcoded post data)
|
2021-11-10 18:16:15 +02:00 |
|
Delyan Angelov
|
466ced2876
|
net.http: fix multipart/form-data file upload handling
|
2021-11-10 17:31:41 +02:00 |
|
Miccah
|
655b5c563a
|
net.http: use [params] for Config structs (#12299)
|
2021-10-26 10:45:27 +03:00 |
|
Delyan Angelov
|
d9c6c9a7df
|
http: cleanup download_file, remove unimplemented download_file_with_progress
|
2021-10-24 17:19:44 +03:00 |
|
a-iga
|
1ba839dc3b
|
openssl: change read_into to read (#12251)
|
2021-10-21 14:13:04 +03:00 |
|
Alexander Medvednikov
|
e6b7ab8b9d
|
net.http: authority header
|
2021-10-17 06:40:19 +03:00 |
|
Alexander Ivanov
|
0386f2bbea
|
checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963)
|
2021-10-11 15:41:31 +03:00 |
|
Delyan Angelov
|
0916806350
|
ci: do not use htonll and ntohll on windows, use the portable versions instead.
|
2021-10-02 18:21:16 +03:00 |
|
Delyan Angelov
|
9a4dbc25ca
|
ci: fix failing conv_test.v on windows
|
2021-10-02 15:51:48 +03:00 |
|
Anton Zavodchikov
|
4c8094d0d9
|
net.http: make public errors and parse_form (#12038)
|
2021-10-02 15:28:35 +03:00 |
|
Anton Zavodchikov
|
600880660a
|
net.http: add a deprecated attribute for un/escape functions (#12037)
|
2021-10-02 15:19:32 +03:00 |
|
Delyan Angelov
|
d1d4877348
|
net.conv: add a test for the nth16/nth32/nth64/htn16/htn32/htn64 functions
|
2021-10-02 13:26:09 +03:00 |
|
Delyan Angelov
|
6f7c3a7cdf
|
ci: do brew install openssl on the macos job, reduce flakyness of tcp_test.v
|
2021-10-01 13:13:05 +03:00 |
|
Delyan Angelov
|
2bdba5ed73
|
net: fix declarations of C.htonl/C.htons/C.ntohl/C.ntohs in aasocket.c.v
|
2021-10-01 12:57:47 +03:00 |
|
Alexander Medvednikov
|
c2f535fee1
|
ci: run the gitly web server test
|
2021-09-29 19:26:49 +03:00 |
|
Delyan Angelov
|
6b40ead54d
|
fix ./v -cc g++ run examples/concurrency/concurrency_http.v
|
2021-09-28 10:35:02 +03:00 |
|
czkz
|
6967a47e07
|
net.openssl: fix typos in comments (#11988)
|
2021-09-26 22:33:10 +03:00 |
|
Miccah
|
956fdffd96
|
net.http: allow custom headers in post_multipart_form (#11971)
|
2021-09-25 10:09:49 +03:00 |
|
Delyan Angelov
|
ece5fa183c
|
fast.v: freebsd fixes
|
2021-09-23 13:48:41 +03:00 |
|
yuyi
|
108a01d65f
|
fmt: fix unnecessary line break in array init (fix #11448) (#11562)
|
2021-09-21 16:20:09 +03:00 |
|
Delyan Angelov
|
7bd145d88a
|
os,net: cleanup deprecated @VROOT usages
|
2021-09-19 16:24:24 +03:00 |
|
Miccah
|
ead5e66afd
|
net.http: add post_multipart_form function (#11511)
|
2021-09-16 07:34:07 +03:00 |
|
Dialga
|
f295469fac
|
net.urllib: make unescape() autofree compatible (#11510)
|
2021-09-16 07:09:20 +03:00 |
|
Daniel Däschle
|
b63ec8fbcf
|
checker: require params attribute to use struct as keyword arguments in function (#11135)
|
2021-09-14 00:05:30 +03:00 |
|
Alexander Medvednikov
|
90e04d03b2
|
net.http: fix request_test.v
|
2021-09-11 06:16:00 +03:00 |
|
Alexander Medvednikov
|
1546090131
|
vweb: remove a duplicate function parse_multipart_form
|
2021-09-11 04:21:10 +03:00 |
|
Alexander Medvednikov
|
d1e9aa49ea
|
net.http: in memory cert verification
|
2021-09-09 19:55:57 +03:00 |
|
yuyi
|
e5360e164a
|
fmt: remove unnecessary parentheses after return (fix #11423) (#11435)
|
2021-09-08 14:19:53 +03:00 |
|
Enzo
|
e3b65092d6
|
parser: deprecate size_t (#11443)
|
2021-09-08 13:09:32 +03:00 |
|
Alexander Medvednikov
|
577fedfce1
|
net.http: fix a bug with ? in new_request
|
2021-09-08 05:11:02 +03:00 |
|
Dialga
|
00433ba460
|
net.urllib: avoid a double free in set_path() when compiled with -autofree (#11427)
|
2021-09-07 21:11:03 +03:00 |
|
Dialga
|
9b983bdd95
|
net.urllib: fix double free in escape() (#11390)
|
2021-09-04 14:57:09 +03:00 |
|
Delyan Angelov
|
56993b9e2d
|
net.http: support passing client certificates in http.fetch (#11356)
|
2021-09-01 01:43:35 +03:00 |
|
yuyi
|
8be2be8311
|
all: change 'if !(a in b)' to 'if a !in b' (#11330)
|
2021-08-29 11:55:18 +03:00 |
|
Alexander Medvednikov
|
853d3cb83e
|
os: make chmod() return error
|
2021-08-28 09:37:24 +03:00 |
|
Delyan Angelov
|
c954c2834a
|
net: add -d trace_tcp support for more TcpConn methods; support again -d net_blocking_sockets too
|
2021-08-27 13:10:34 +03:00 |
|
Fabricio Pashaj
|
0bf9197f41
|
net.http: add a close method to immediatly close the listener of a started http.Server, add more tests (#11248)
|
2021-08-24 19:21:24 +03:00 |
|
Miccah
|
51d7aede68
|
net.http: render each header value on a newline (#11270)
|
2021-08-23 00:38:09 +03:00 |
|
Simon
|
ed06c47a51
|
net: remove sockets if they already exists (#11264)
|
2021-08-22 13:38:02 +03:00 |
|
Miccah
|
2cb0db633d
|
vweb: use Response struct for 302 response (#11245)
|
2021-08-20 01:13:36 +03:00 |
|
Miccah
|
6991a3c8d5
|
net.http: add graceful shutdown .stop() method to the http.Server struct (#11233)
|
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 |
|
Delyan Angelov
|
e32c65c322
|
ci: fix TcpConn.set_blocking on windows
|
2021-08-07 23:27:25 +03:00 |
|
Delyan Angelov
|
b22c335496
|
net: add TcpConn.get_blocking/0, TcpConn.set_blocking/1 methods, change TcpConn.read_line to set the connection to blocking, if it was not already
|
2021-08-07 23:21:55 +03:00 |
|
zakuro
|
490dec222f
|
fmt: keep char literal, ' (#11060)
|
2021-08-06 06:21:28 +03:00 |
|
Delyan Angelov
|
efa8dcf4d2
|
time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050)
|
2021-08-04 13:12:02 +03:00 |
|
Daniel Däschle
|
800c0e5092
|
vlib: remove deprecated map{} usages as well as deprecated functions (#11035)
|
2021-08-04 12:44:41 +03:00 |
|
Miccah
|
cc9463401e
|
http: change server handler from function to interface (#10994)
|
2021-08-01 15:50:11 +03:00 |
|
shadow
|
66bc8bc0cb
|
vlib: remove many deprecated functions (#10972)
|
2021-07-28 09:22:19 +03:00 |
|
Louis Schmieder
|
1943da54a5
|
orm: integrate psql to orm (#10933)
|
2021-07-24 20:49:40 +03:00 |
|
Miccah
|
a0e27d3fd9
|
net.http: refactor the Response struct (#10922)
|
2021-07-24 20:47:45 +03:00 |
|
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 |
|
Alexander Medvednikov
|
de6784a007
|
net: base address_freebsd.c.v on darwin instead of linux
|
2021-07-21 17:31:32 +03:00 |
|
Alexander Medvednikov
|
e38b0d7e9f
|
net: freebsd fixes
|
2021-07-21 14:29:45 +03:00 |
|
Delyan Angelov
|
c12cd0c964
|
ci: workaround for failing net tests
|
2021-07-21 09:58:40 +03:00 |
|
Daniel Däschle
|
ad3835b598
|
parser: deprecate short struct init (#10842)
|
2021-07-20 11:17:08 +03:00 |
|
crthpl
|
5089eb4a84
|
parser: fix pointer cast expressions hack (#10777)
|
2021-07-13 12:01:24 +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 |
|
Tomas Hellström
|
ec973f5c6e
|
x.websocket: move to net.websocket module (#10648)
|
2021-07-03 02:56:00 +03:00 |
|
Uwe Krüger
|
72358833e0
|
time: use Duration(C.INT64_MAX) as infinite (#10539)
|
2021-06-22 12:17:44 +03:00 |
|
Ekopalypse
|
e259f7ac58
|
net: make openssl init function backward compatible (#10537)
|
2021-06-21 19:23:57 +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 |
|
Tomas Hellström
|
46eb6befd5
|
vweb,net: just log errors in accept() instead of panic-ing, add time.sleep(1ms) after each retry in select (#10489)
|
2021-06-17 10:41:26 +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 |
|
Tomas Hellström
|
2f9e03b360
|
net: retry logic on select when fail on signal (#10453)
|
2021-06-16 04:07:24 +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 |
|
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 |
|