mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
xhr: implement responseURL
This commit is contained in:
@@ -467,6 +467,11 @@ pub const XMLHttpRequest = struct {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO retrieve the redirected url
|
||||
pub fn get_responseURL(self: *XMLHttpRequest) ?[]const u8 {
|
||||
return self.url;
|
||||
}
|
||||
|
||||
pub fn get_responseXML(self: *XMLHttpRequest, alloc: std.mem.Allocator) !?Response {
|
||||
if (self.response_type != .Empty and self.response_type != .Document) {
|
||||
return DOMError.InvalidState;
|
||||
|
||||
Reference in New Issue
Block a user