1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:37:44 +00:00

LibWeb: Implement Fetch::Infrastructure::Response::clone()

This commit is contained in:
Linus Groh 2022-09-25 19:23:35 +01:00
parent b5e8e9b30b
commit ef5e2eb794
2 changed files with 22 additions and 0 deletions

View file

@ -100,6 +100,8 @@ public:
[[nodiscard]] Optional<AK::URL const&> url() const;
[[nodiscard]] ErrorOr<Optional<AK::URL>> location_url(Optional<String> const& request_fragment) const;
[[nodiscard]] NonnullOwnPtr<Response> clone() const;
private:
// https://fetch.spec.whatwg.org/#concept-response-type
// A response has an associated type which is "basic", "cors", "default", "error", "opaque", or "opaqueredirect". Unless stated otherwise, it is "default".