Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XHR #166

Merged
merged 46 commits into from
Feb 15, 2024
Merged

XHR #166

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0ac605a
upgrade jsruntime
krichprollsch Feb 15, 2024
df7d17c
xhr: start implementation
krichprollsch Jan 16, 2024
f714d86
xhr: validate method
krichprollsch Jan 17, 2024
9d26a43
async: copy stdlib http client
krichprollsch Jan 29, 2024
511e9b9
async: use std http client with loop
krichprollsch Jan 30, 2024
c200f60
async: add pure async http client
krichprollsch Jan 30, 2024
2fa66f9
async: refacto with comptime generation
krichprollsch Jan 30, 2024
2b79a65
xhr: implement async http client
krichprollsch Jan 31, 2024
af20584
async: remove useless http.zig
krichprollsch Jan 31, 2024
8b6d7d0
xhr: implement prototype chain correctly
krichprollsch Jan 31, 2024
c2bc48b
xhr: fix implementation errors
krichprollsch Jan 31, 2024
89409a4
xhr: add a setOnload due to a setter issue
krichprollsch Jan 31, 2024
0693011
async: remove context from loop impl init
krichprollsch Jan 31, 2024
6f46d76
xhr: implementation follow up
krichprollsch Jan 31, 2024
3915c60
xhr: handle response headers
krichprollsch Jan 31, 2024
5bd5905
xhr: implement responseText
krichprollsch Jan 31, 2024
19b459b
xhr: add status and statusText
krichprollsch Feb 2, 2024
cac1110
xhr: add getResponseHeader
krichprollsch Feb 2, 2024
f3a1920
async: yield between fetch steps in test cli
krichprollsch Feb 6, 2024
8a61f0f
xhr: yield each fetch steps
krichprollsch Feb 6, 2024
f791891
xhr: dispatch generic events
krichprollsch Feb 6, 2024
554a05d
xhr: fix getter/setter for callbacks
krichprollsch Feb 7, 2024
86a69da
xhr: add ProgressEvent type
krichprollsch Feb 7, 2024
0acdadf
xhr: fix listeners setters
krichprollsch Feb 7, 2024
4a9a0e5
xhr: progressevent accept null progressevent init
krichprollsch Feb 8, 2024
4b75fd1
xhr: rename onerr into onErr
krichprollsch Feb 8, 2024
7323f22
xhr: add blocked comment
krichprollsch Feb 8, 2024
5aafc93
event: add remove listener test
krichprollsch Feb 8, 2024
d24df57
xhr: use nested object for ProgressEventInit
krichprollsch Feb 8, 2024
76df0a1
xhr: fix ProgressEvent implementation
krichprollsch Feb 9, 2024
e799339
xhr: destroy allocated mem on error
krichprollsch Feb 9, 2024
6aa182c
xhr: defer event destroy
krichprollsch Feb 9, 2024
47520ae
xhr: move progress event in its own file
krichprollsch Feb 9, 2024
1a448b0
xhr: response_type getter/setter
krichprollsch Feb 9, 2024
f22c927
xhr: move XMLHttpEventTarget in its own file
krichprollsch Feb 9, 2024
84a5233
xhr: implement response
krichprollsch Feb 9, 2024
704f12f
xhr: fix json response
krichprollsch Feb 12, 2024
d5e3762
xhr: comment json and add a document test
krichprollsch Feb 12, 2024
34015b8
xhr: add reponseXML
krichprollsch Feb 12, 2024
ff754fc
xhr: implement responseURL
krichprollsch Feb 12, 2024
54a807b
xhr: add abort func
krichprollsch Feb 12, 2024
d58fbe0
xhr: return DOM document instead of HTML document
krichprollsch Feb 13, 2024
d062d0f
xhr: implement basic send data from string
krichprollsch Feb 13, 2024
4c19dbc
xhr: fix content-type header typo
krichprollsch Feb 14, 2024
e927743
browser: add log info on error
krichprollsch Feb 14, 2024
2508dc7
xhr: add some logs
krichprollsch Feb 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/apiweb.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const Console = @import("jsruntime").Console;
const DOM = @import("dom/dom.zig");
const HTML = @import("html/html.zig");
const Events = @import("events/event.zig");
const XHR = @import("xhr/xhr.zig");

pub const HTMLDocument = @import("html/document.zig").HTMLDocument;

Expand All @@ -14,4 +15,5 @@ pub const Interfaces = generate.Tuple(.{
DOM.Interfaces,
Events.Interfaces,
HTML.Interfaces,
XHR.Interfaces,
});
Loading
Loading