Commit Graph

5357 Commits

Author SHA1 Message Date
Muki Kiboigo
2a2acd3019 fix self.req.ctx in HttpClient 2026-03-31 12:16:44 -07:00
Muki Kiboigo
8b65d268d0 remove cache revalidation stubs 2026-03-31 12:16:43 -07:00
Muki Kiboigo
c6ac7bcd42 add Vary support 2026-03-31 12:16:43 -07:00
Muki Kiboigo
f03f9f185d add more FsCache tests 2026-03-31 12:16:43 -07:00
Muki Kiboigo
8a24742545 always close file on serveFromCache 2026-03-31 12:16:43 -07:00
Muki Kiboigo
9656f65e74 better logging for cache 2026-03-31 12:16:43 -07:00
Muki Kiboigo
4408bc99c8 switch to single file cache 2026-03-31 12:16:43 -07:00
Muki Kiboigo
8a62c166fa properly deinit cache 2026-03-31 12:16:43 -07:00
Muki Kiboigo
8044871948 use wyhash for power of two lock stripes 2026-03-31 12:16:42 -07:00
Muki Kiboigo
1cf7e09708 require timestamp passed in with cache request 2026-03-31 12:16:42 -07:00
Muki Kiboigo
a141be8442 remove unused cache method on fs cache 2026-03-31 12:16:42 -07:00
Muki Kiboigo
94f436de17 add basic fs cache get/put test 2026-03-31 12:16:42 -07:00
Muki Kiboigo
2c19e6581a check age on fs cache get 2026-03-31 12:16:42 -07:00
Muki Kiboigo
5e2e42457c only store stuff when we know we will cache 2026-03-31 12:16:40 -07:00
Muki Kiboigo
0720984a4e shortcircuit a lot of caching checks 2026-03-31 12:15:49 -07:00
Muki Kiboigo
024fbdd118 ensure fs cache file is closed after use 2026-03-31 12:15:49 -07:00
Muki Kiboigo
bcef603038 use CacheRequest instead of key 2026-03-31 12:15:49 -07:00
Muki Kiboigo
33039b0b47 add striped lock to FsCache 2026-03-31 12:15:49 -07:00
Muki Kiboigo
b9acc1f55a use arena_pool for cache get 2026-03-31 12:15:48 -07:00
Muki Kiboigo
3eea37dd3b use writer for fs cache body file 2026-03-31 12:15:48 -07:00
Muki Kiboigo
14ae904fd0 use json for fs cache metadata file 2026-03-31 12:15:48 -07:00
Muki Kiboigo
598583980c use sha256 instead of wyhash 2026-03-31 12:15:48 -07:00
Muki Kiboigo
f0a85e4680 store type_buf and sub_type_buf in Mime 2026-03-31 12:15:48 -07:00
Muki Kiboigo
0634631e5d add more http caching rules 2026-03-31 12:15:48 -07:00
Muki Kiboigo
881a69b2d1 use CacheControl and Vary 2026-03-31 12:15:48 -07:00
Muki Kiboigo
14229b4c12 cache headers along with response 2026-03-31 12:15:47 -07:00
Muki Kiboigo
898b98ebf1 add basic caching support 2026-03-31 12:15:47 -07:00
Muki Kiboigo
672f6d4eff create cache owned by the network struct 2026-03-31 12:15:47 -07:00
Muki Kiboigo
173017be63 use enum approach instead of vtable 2026-03-31 12:15:47 -07:00
Muki Kiboigo
4ac1a33663 add basic FsCache impl 2026-03-31 12:15:47 -07:00
Muki Kiboigo
ba97b21ceb add CachedResponse variant to Response 2026-03-31 12:15:47 -07:00
Muki Kiboigo
2d4fa7f362 add headerIterator to Http Response 2026-03-31 12:15:47 -07:00
Muki Kiboigo
d4d828d34b use Response instead of Transfer in callbacks 2026-03-31 12:15:45 -07:00
Muki Kiboigo
15e1f9faac allow Mime parse to use []const u8 2026-03-31 12:12:23 -07:00
Muki Kiboigo
4e26e0e792 add cache dir to configuration opts 2026-03-31 12:12:22 -07:00
Muki Kiboigo
56420bf7b7 create Cache interface file 2026-03-31 12:12:22 -07:00
Karl Seguin
469a6ecaea Merge pull request #2051 from lightpanda-io/structureClone_host_object
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / wba-demo-scripts (push) Has been cancelled
e2e-test / wba-test (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig fmt (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
Provide a failing callback to ValueSerializer for host objects
2026-03-31 22:33:54 +08:00
Karl Seguin
4ad8282e75 Merge pull request #2047 from lightpanda-io/fancy-wait
Add --wait-selector, --wait-script and --wait-script-file options to …
2026-03-31 20:59:48 +08:00
Karl Seguin
3d624a97a7 Merge pull request #2052 from lightpanda-io/xhr_expand_ref
Expand the lifetime of the XHR reference
2026-03-31 20:59:28 +08:00
Karl Seguin
571c346316 use releaseSelfRef on done just to be extra safe 2026-03-31 20:39:11 +08:00
Karl Seguin
af19cbc726 use remaining instead of timeout_ms, else, what's the point?
Co-authored-by: Adrià Arrufat <1671644+arrufat@users.noreply.github.com>
2026-03-31 19:42:32 +08:00
Karl Seguin
9716150530 rename has_ref -> active_request 2026-03-31 19:15:01 +08:00
Karl Seguin
20cadd2282 Merge pull request #2053 from lightpanda-io/remove_dead_code
remove dead code
2026-03-31 18:24:48 +08:00
Karl Seguin
4c4f395b1e Merge pull request #2036 from lightpanda-io/remove_cdp_generics
Removing remaining CDP generic
2026-03-31 17:54:34 +08:00
Karl Seguin
26653120fa Removing remaining CDP generic
Follow up to https://github.com/lightpanda-io/browser/pull/1990 which makes
both BrowserContext and Command non-generic.
2026-03-31 16:53:58 +08:00
Karl Seguin
a4a024ce9c remove dead code 2026-03-31 16:48:47 +08:00
Karl Seguin
492fd86bad Expand the lifetime of the XHR reference
We need to take the self-reference to the XHR object as soon as the request is
made. Previously, we were waiting until we got the start callback, but v8 could
(and does) drop the reference before that happens. Unfortunately, that means
we can no longer use _transfer == null to tell if we own a reference or not, so
a new boolean was added.
2026-03-31 16:46:31 +08:00
Karl Seguin
c3c465347d Provide a failing callback to ValueSerializer for host objects
V8 needs our help when serializing host (e.g. a Zig dom instance) objects. We
don't currently have this implemented, so this provides the callback that throws
an error. Our wrapper returns Nothing when no callback is provided, which v8
doesn't allow (via assertion).
2026-03-31 16:13:55 +08:00
Adrià Arrufat
55666ab7cd Merge pull request #2049 from lightpanda-io/refactor/getNodeDetails-param-order
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / wba-demo-scripts (push) Has been cancelled
e2e-test / wba-test (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig fmt (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
SemanticTree: reorder getNodeDetails params
2026-03-31 07:58:28 +02:00
Adrià Arrufat
008235222b SemanticTree: reorder getNodeDetails params 2026-03-31 07:29:33 +02:00