mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
WebDriver: Implement DELETE /session/{id}/cookie
endpoint
This commit is contained in:
parent
c710780852
commit
0d6dc2492d
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/TobyAsE
Commit: 0d6dc2492d
Pull-request: https://github.com/SerenityOS/serenity/pull/15649
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg
4 changed files with 51 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue