Commit graph

49 commits

Author SHA1 Message Date
Filip Tibell
5ddbc64fbb
Fix accidental breakage with serve handle stop method 2025-04-28 22:02:37 +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
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
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
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
Filip Tibell
b74568eea0
Bump all crate versions 2025-04-25 12:49:58 +02:00
Filip Tibell
387080cf45
Make the final breaking change with net json and update changelog 2025-04-25 12:43:40 +02:00
Filip Tibell
b147e83d3c
Bundle each typedefs file with its respective lune-std crate to fix publishing and cargo-binstall issues 2025-04-24 19:49:20 +02:00
Filip Tibell
6252bc218e
Migrate to mlua 0.10 2025-04-23 15:20:53 +02:00
Filip Tibell
8abfc21181
Use standard method calling conventions for websockets 2024-10-16 21:55:53 +02:00
Filip Tibell
56f08a88aa
Fix new clippy lints 2024-08-10 13:34:13 +02:00
Filip Tibell
3e09807638
Bump all crate versions 2024-08-10 13:07:56 +02:00
Filip Tibell
e2e8beb45c
Bump all crate versions 2024-06-23 12:55:47 +02:00
Filip Tibell
2a85532448
Move mlua-luau-scheduler into this repository 2024-06-05 16:45:53 +02:00
Filip Tibell
e0b9ceb86d
Add missing repository and description fields to all manifests 2024-05-12 14:32:39 +02:00
Filip Tibell
de71558c5d
Split lune into proper crates (#188) 2024-05-12 13:30:32 +02:00