mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
WebDriver: Implement POST /session/{id}/cookie
endpoint
This allows the WebDriver to create a cookie. We use a Web::Cookie::ParsedCookie to transport the data through IPC to take advantage of the RFC6265 Section 5.3 implementation in the CookieJar.
This commit is contained in:
parent
b79b78a5cc
commit
122e2d2076
7 changed files with 152 additions and 0 deletions
|
@ -58,6 +58,7 @@ private:
|
|||
ErrorOr<JsonValue, HttpError> handle_forward(Vector<StringView>, JsonValue const& payload);
|
||||
ErrorOr<JsonValue, HttpError> handle_get_all_cookies(Vector<StringView>, JsonValue const& payload);
|
||||
ErrorOr<JsonValue, HttpError> handle_get_named_cookie(Vector<StringView>, JsonValue const& payload);
|
||||
ErrorOr<JsonValue, HttpError> handle_add_cookie(Vector<StringView>, JsonValue const& payload);
|
||||
ErrorOr<JsonValue, HttpError> handle_delete_cookie(Vector<StringView>, JsonValue const& payload);
|
||||
ErrorOr<JsonValue, HttpError> handle_delete_all_cookies(Vector<StringView>, JsonValue const& payload);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue