Commit graph

1026 commits

Author SHA1 Message Date
Filip Tibell
2fcf02f94d
Run all tests even if one fails 2025-04-28 22:39:49 +02:00
Filip Tibell
af76dd160c
Use binstall instead 2025-04-28 22:20:20 +02:00
Filip Tibell
17d3cf4504
Migrate to cargo nextest in ci 2025-04-28 22:14:44 +02:00
Filip Tibell
1b8fee043e
Lower amount of requests in serve test, github runners are slow 2025-04-28 22:08:07 +02:00
Filip Tibell
5ddbc64fbb
Fix accidental breakage with serve handle stop method 2025-04-28 22:02:37 +02:00
Filip Tibell
e79ffc11a5
Update tooling and fix analyze 2025-04-28 21:57:45 +02:00
Filip Tibell
18f58692e3
Much better handling of default headers in http client 2025-04-28 21:44:15 +02:00
Filip Tibell
05a47bd9dc
Fix flaky tests and make sure empty bodies are always None 2025-04-28 21:29:39 +02:00
Filip Tibell
9f6a1532a6
Make request and response implement FromLua directly instead of separate config 2025-04-28 19:23:19 +02:00
Filip Tibell
1915441ee6
Fix futures queue not cleaning up properly at end of scheduler run 2025-04-28 14:22:47 +02:00
Filip Tibell
752f5496cf
Remove temp test file 2025-04-28 14:20:57 +02:00
Filip Tibell
68d1c2bb39
Get rid of unnecessary work in mlua-luau-scheduler after latest mlua upgrade + remove tracing in net 2025-04-28 14:20:47 +02:00
Filip Tibell
1d5535dac0
Add tracing spans to the server 2025-04-28 12:54:41 +02:00
Filip Tibell
91d3becfa7
Disable vectored writes 2025-04-28 12:40:37 +02:00
Filip Tibell
b41980d6e1
Dont unnecessarily clone the entire response in http server 2025-04-28 11:56:59 +02:00
Filip Tibell
37da9a39ec
Avoid some cloning 2025-04-28 11:50:58 +02:00
Filip Tibell
47d5f928b8
Use collect combinator instead of manual stream handling for incoming body 2025-04-28 11:42:08 +02:00
Filip Tibell
bc87d6ca2f
Dont iterate all headers to find just content encoding 2025-04-28 11:39:09 +02:00
Filip Tibell
03c013cc3c
Rc and cell instead of arc atomic 2025-04-28 11:35:53 +02:00
Filip Tibell
49001bf6d6
Remove temp test file 2025-04-27 22:42:57 +02:00
Filip Tibell
11bce8412c
Properly fix http server dying when serve handle is GCed + document it 2025-04-27 22:39:21 +02:00
Filip Tibell
bf819d1980
Implement full websocket server support and more graceful server internal error handling 2025-04-27 22:10:57 +02:00
Filip Tibell
3f179ab4ec
Full implementation for websocket streams and client 2025-04-27 19:29:48 +02:00
Filip Tibell
a82cb1da33 Implement serve handle again and proper graceful shutdowns 2025-04-27 18:16:53 +02:00
Filip Tibell
d57a7b949d Expand the net serve test suite 2025-04-27 18:16:53 +02:00
Filip Tibell
4725497f42 Initial working http server 2025-04-27 18:16:53 +02:00
Filip Tibell
9157ed9d33 Add back url encoding and decoding functions 2025-04-27 18:16:53 +02:00
Filip Tibell
611a9a92d8 Implement decompression for incoming bodies 2025-04-27 18:16:53 +02:00
Filip Tibell
af46cbbe1b Share incoming body implementation between both client and server 2025-04-27 18:16:53 +02:00
Filip Tibell
85ba4e66fe Use tryfrom trait to convert from config to request or response 2025-04-27 18:16:53 +02:00
Filip Tibell
64d49de3be Make imports symmetric too 2025-04-27 18:16:53 +02:00
Filip Tibell
a0f55bc1ec Implement server response config and full symmetry between request and response methods 2025-04-27 18:16:53 +02:00
Filip Tibell
1e4b020d84 Make response fields crate visible 2025-04-27 18:16:53 +02:00
Filip Tibell
48e34b8c98 Move request sending to client sub module 2025-04-27 18:16:53 +02:00
Filip Tibell
c92d086123 Use only Bytes for internal representation, add helper methods to convert to Full<Bytes> 2025-04-27 18:16:53 +02:00
Filip Tibell
ee908067a7 Some more comments 2025-04-27 18:16:53 +02:00
Filip Tibell
46692e1133 Implement automatic redirect following for requests 2025-04-27 18:16:53 +02:00
Filip Tibell
ece2c1adf2 Preallocate incoming body 2025-04-27 18:16:53 +02:00
Filip Tibell
f5993c6505 Make sure the decompress option is preserved 2025-04-27 18:16:53 +02:00
Filip Tibell
14197d9398 Add back some old structs and utils for net requests + most tests now pass 2025-04-27 18:16:53 +02:00
Filip Tibell
07744d0079 Initial working request function in net 2025-04-27 18:16:53 +02:00
Filip Tibell
f9fc1c6de1 Executor should be clonable 2025-04-27 18:16:53 +02:00
Filip Tibell
0911fcbf5b Implement everything needed to integrate with hyper: executor + timer + sleep + io 2025-04-27 18:16:53 +02:00
Filip Tibell
89e8104bd4 Rename modules to client + server instead of request + serve + socket 2025-04-27 18:16:53 +02:00
Filip Tibell
1cd9813702 Implement initial http request stream with http + https 2025-04-27 18:16:53 +02:00
Filip Tibell
b4152a34af Make some blank modules 2025-04-27 18:16:53 +02:00
Filip Tibell
d70e09a591 Rip the net out 2025-04-27 18:16:53 +02:00
Sasial
1f43ff89f7
RuntimeReturnValues should derive Debug (#309) 2025-04-26 22:51:17 +02:00
Filip Tibell
e234eab813
Make pretext in latest changelog entry clearer 2025-04-25 16:43:12 +02:00
Filip Tibell
fc12e15a9a
Add missing error-send feature to mlua in lune-std-serde 2025-04-25 16:29:00 +02:00