1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:18:11 +00:00

WebDriver: Implement DELETE /session/{id}/cookie endpoint

This commit is contained in:
Tobias Christiansen 2022-10-16 19:55:01 +02:00 committed by Linus Groh
parent c710780852
commit 0d6dc2492d
4 changed files with 51 additions and 0 deletions

View file

@ -42,8 +42,11 @@ public:
ErrorOr<JsonValue, HttpError> forward();
ErrorOr<JsonValue, HttpError> get_all_cookies();
ErrorOr<JsonValue, HttpError> get_named_cookie(String const& name);
ErrorOr<JsonValue, HttpError> delete_all_cookies();
private:
void delete_cookies(Optional<StringView> const& name = {});
NonnullRefPtr<Client> m_client;
bool m_started { false };
unsigned m_id { 0 };