fetch with body

This commit is contained in:
Karl Seguin
2025-12-04 16:10:56 +08:00
parent aa3a402f70
commit ff9f9bae1d
3 changed files with 27 additions and 12 deletions

View File

@@ -69,7 +69,8 @@ pub fn init(input: Input, options: ?InitOpts, page: *Page) !js.Promise {
try http_client.request(.{
.ctx = fetch,
.url = request._url,
.method = .GET,
.method = request._method,
.body = request._body,
.headers = headers,
.resource_type = .fetch,
.cookie_jar = &page._session.cookie_jar,