Kim Shrier
2d4ccf6829
vlib: replace macros that resolve to __builtin_bswapnn calls for tcc ( #19305 )
...
The tcc compiler does not have __builtin_bswap64, __builtin_bswap32,
and __builtin_bswap16 functions. The various hton and ntoh macros
resolve down to these functions. When compiling with tcc, we should
be using the analogous functions from net.conv.
2023-09-08 07:42:28 +03:00
Delyan Angelov
c7ebc477b0
net.http: default explicitly to Method.get for http.Request and http.FetchConfig too
2023-09-06 12:03:19 +03:00
Delyan Angelov
330dda59c8
net.http: fix http.fetch(), without explicit method (default again to .get, not to .acl)
2023-09-06 11:59:47 +03:00
James Kirkwood
7927583de9
net.mbedtls: have shutdown close accepted connections too ( #19164 )
2023-08-30 21:52:42 +03:00
Turiiya
f755118e7c
vlib: update doc comments ( #19231 )
2023-08-30 08:50:00 +03:00
pancake
45e6e7d763
http: add support for stream connections, and custom .on_redirect, .on_progress, .on_finish callbacks to http.fetch() ( #19184 )
2023-08-23 20:42:05 +03:00
yuyi
815439a381
checker: fix assigning an array slice ( fix #19120 ) ( #19137 )
2023-08-15 20:37:51 +03:00
Wertzui123
64cbbea074
net.websocket: fix typo in docs (ws -> wss) ( #19143 )
2023-08-15 13:48:57 +03:00
shove
11a8a46ade
tests: cleanup test cases ( #19104 )
2023-08-13 13:36:08 +03:00
Wertzui123
387f717004
websocket: initialize function pointers with nil ( #19105 )
2023-08-11 13:49:29 +03:00
shove
f4859ffb11
checker: fix missing or_block check for left expr of CallExpr( fix #19061 ) ( #19074 )
2023-08-08 09:06:03 +03:00
Lucas V. Araujo
ffdd5bb955
net.mbedtls: fix an error with in_memory_verification ( fix #19051 ) ( #19052 )
2023-08-04 01:32:33 +03:00
Lucas V. Araujo
ecca3b155e
net.mbedtls: add SSLListener to allow creating SSL servers ( #19022 )
2023-08-01 20:45:50 +03:00
Delyan Angelov
177bb30013
net: change default of the socket used by net.listen_tcp, to dualstack, even if the OS has a different default. Allow changing the listen backlog too
...
With this change, example vweb programs, will continue to be available to both
ipv6 and ipv4 connections from the same machine, even after doing (on linux):
`echo 1 | sudo tee /proc/sys/net/ipv6/bindv6only`
Previously, after that, vweb programs responded only to ipv6 connections, but not to ipv4 ones,
i.e. opening http://127.0.0.1:8082/ stopped working, for `v run examples/vweb/vweb_example.v` .
Note: GO web servers have the same behaviour, which is convenient for development/testing,
since it makes the programs more consistent and robust in the face of OS settings changes.
2023-08-01 11:32:08 +03:00
Kim Shrier
fd81bae361
net.websocket: remove unnecessary manual frees of static strings ( #19009 )
2023-07-31 21:23:33 +03:00
Delyan Angelov
41f99c1abf
tools: add cmd/tools/show_ancient_deprecations.v, to cleanup ancient functionality, deprecated over an year ago ( #18946 )
2023-07-22 19:13:58 +03:00
JalonSolov
c3ff4b2f85
net.conv: rename functions to match other langs, making them easier t… ( #18937 )
2023-07-22 09:11:01 +03:00
l-m
36d45c6d14
net.http.chunked: return !string
on decode ( #18928 )
2023-07-21 16:37:55 +03:00
Delyan Angelov
ef049839ab
ci: fix failing tests-sanitize-memory-clang (regression after 9047f7c
)
2023-07-18 02:35:01 +03:00
alexferl
c2dc1ca706
net.http: make listener public, and add addr in Server struct ( #18871 )
2023-07-16 15:42:30 +03:00
Delyan Angelov
9047f7c9a8
vweb: fix parsing of form fields, send with multipart/form-data (by JS fetch)
2023-07-14 16:20:02 +03:00
Alexander Medvednikov
f1bc5e6d46
http: Request.host
2023-07-14 14:26:11 +03:00
okk
7d6e15fa66
net.ftp: fix dir() for file names, which contain spaces ( fix #18800 ) ( #18804 )
2023-07-07 06:50:20 +03:00
Turiiya
b2ca3ac089
net.html: fix semantic inconsistencies of tag retrieving functions ( #18558 )
2023-06-27 20:10:31 +03:00
Joe Koop
8b25c4c9a3
net.http: copy IANA's list of methods to the http.Method enum ( #18508 )
2023-06-22 09:31:34 +03:00
yuyi
126fbe8e33
scanner: fix indent error for line comment generated by vdoc ( #18422 )
2023-06-13 08:50:02 +03:00
Felipe Pena
54eabcb242
cgen: make the default values for all enums, be their first listed entry, even if it was enum MyEnum { first = 999 second}
, not just the defaul 0
( #18388 )
2023-06-11 21:57:36 +03:00
Casper Kuethe
4174048f96
vweb: add host option to controller ( #18303 )
2023-05-30 14:22:23 +02:00
xiusin
43bc85d3bb
http: add workers to improve the server's concurrent capacity. ( #18271 )
2023-05-27 01:57:32 +03:00
Alexander Medvednikov
c45c36ccce
orm: improve an fkey error a bit
2023-05-24 18:30:44 +02:00
Turiiya
1be798be49
net.html: remove unnecessary comment ( #18230 )
2023-05-22 07:46:26 +03:00
kbkpbot
a10690b934
net.conv: use a pure v implementation instead of C.hton etc ( #18226 )
2023-05-22 06:59:33 +03:00
xiusin
e4c769d072
net.http: add remote-addr header ( #18208 )
2023-05-21 15:23:24 +02:00
Alexander Medvednikov
cc47c78f39
net.mbedtls: make compile with -prod
2023-05-18 11:31:53 +02:00
kbkpbot
c8d2098a14
net.websocket: make thread safe/concurrent ( #18179 )
2023-05-18 11:27:00 +02:00
Turiiya
67e3061ea1
net: fix typos ( #18164 )
2023-05-12 09:31:27 +03:00
Turiiya
e2e6c9660c
net.html: add &Tag
get_tag methods to find first occurrence ( #18139 )
2023-05-09 00:22:52 +03:00
Turiiya
39ec1134fa
net.html: fix parsing of nested quoted strings in code tags ( #18123 )
2023-05-07 03:55:02 +03:00
Thomas Peißl
353de60158
examples: fix unset reader notice for the smtp/mail example ( #17998 )
2023-05-02 22:54:57 +03:00
Casper Kuethe
0898f57995
net.html: fix text parsing for inline tags ( #18085 )
2023-04-30 16:20:24 +03:00
SolarWolf-Code
7981d2854a
net: fix typo give => given ( #17955 )
2023-04-14 11:15:16 +03:00
Swastik Baranwal
3d99f1f2c2
checker: disallow struct int to ptr outside unsafe ( #17923 )
2023-04-13 07:38:21 +02:00
Josh Montoya
51ad565ed6
vweb: implement worker pool ( #17298 )
2023-04-02 01:24:33 +02:00
Delyan Angelov
57aa4def62
net.html: do not inject <text> tags for text that contains only newlines and spaces
2023-03-30 23:02:57 +03:00
Alexander Medvednikov
6756d28595
all: 2023 copyright
2023-03-28 22:55:57 +02:00
Delyan Angelov
bfb0932588
net.http.mime: execute v run vlib/net/http/mime/build.vsh
to update db.v with the latest official mime types
2023-03-24 08:29:32 +02:00
Brandon
aee76c5819
net: update new_request ( #17618 )
2023-03-17 22:17:22 +01:00
Heptalon
618c92a13b
urllib: change Values.get to return an option type ( #17636 )
2023-03-14 08:44:40 +02:00
Wertzui123
77b6bc1c1a
net.websocket: fix a typo (allready -> already) ( #17512 )
2023-03-06 10:05:17 +02:00
Delyan Angelov
4c13a4c22c
ci: make websocket_test.v more robust (wait till the websocket server are open for connections, instead of relying on fixed time.sleep delays, which are not enough on the CI)
2023-02-25 19:39:14 +02:00