mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
xhr: add abort func
This commit is contained in:
@@ -427,6 +427,10 @@ pub const XMLHttpRequest = struct {
|
|||||||
self.dispatchProgressEvent("loadend", .{});
|
self.dispatchProgressEvent("loadend", .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn _abort(self: *XMLHttpRequest) void {
|
||||||
|
self.onErr(DOMError.Abort);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_responseType(self: *XMLHttpRequest) []const u8 {
|
pub fn get_responseType(self: *XMLHttpRequest) []const u8 {
|
||||||
return switch (self.response_type) {
|
return switch (self.response_type) {
|
||||||
.Empty => "",
|
.Empty => "",
|
||||||
|
|||||||
Reference in New Issue
Block a user