ladybird/Libraries/LibWeb/WebDriver/Proxy.h
Timothy Flynn d873dc0744 LibWeb+WebDriver: Validate WebDriver proxy capabilities
We don't yet support a proxy configuration, but we can still validate
the capability received from the WebDriver client. We should also fail
to create a WebDriver session if a proxy configuration is present.
2025-02-10 11:33:53 -05:00

20 lines
399 B
C++

/*
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/JsonObject.h>
#include <LibWeb/WebDriver/Error.h>
namespace Web::WebDriver {
bool has_proxy_configuration();
void set_has_proxy_configuration(bool);
void reset_has_proxy_configuration();
ErrorOr<JsonObject, Error> deserialize_as_a_proxy(JsonValue const&);
}