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
commit 0d6dc2492d
Notes: sideshowbarker 2024-07-17 09:49:33 +09:00
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 };