WebDriver BiDi synthetic network state and byte/query encoding helpers for crater adapters
pub(all) struct BidiNetworkState {
network_intercepts : Map[String, Json]
next_network_intercept_id : Int
next_network_request_id : Int
network_cache_behavior_global : String
network_extra_headers_global : Map[String, String]
network_extra_headers_by_context : Map[String, Map[String, String]]
network_extra_headers_by_user_context : Map[String, Map[String, String]]
network_cache_behavior_by_context : Map[String, String]
network_state_channel_by_context : Map[String, String]
network_cached_requests_by_context : Map[String, Map[String, Bool]]
network_blocked_requests : Map[String, Json]
network_data_collectors : Map[String, Json]
network_collected_data : Map[String, Map[String, Map[String, Json]]]
next_network_data_collector_id : Int
}pub(all) struct CanonicalNetworkHttpUrl {
scheme : String
host : String
port : Int
path : String
query : String
}pub(all) struct SyntheticFetchPlanEntry {
url : String
http_method : String
request_token : String
redirect_count : Int
request_value : Json?
}pub(all) struct SyntheticNetworkContinueCredentials {
username : String
password : String
}pub(all) struct SyntheticNetworkCookie {
name : String
value_text : String
domain : String
domain_explicit : Bool
path : String
http_only : Bool
secure : Bool
same_site : String
expiry : Int?
}pub(all) struct SyntheticNetworkEventInput {
context_id : String
url : String
http_method : String
request_token : String
request_headers : Array[Json]
request_value : Json?
request_cookies : Array[Json]
request_cookies_override : Bool
intercepts : Array[String]
redirect_count : Int
navigation : String?
destination : String
initiator_type : String?
}pub(all) struct SyntheticNetworkSetCookieOverrideEntry {
set_cookie_header_value : String
cookie : SyntheticNetworkCookie
}fn synthetic_network_cache_key(http_method : String, url : String) -> Stringfn synthetic_network_credentials_match_expected(url : String, credentials : SyntheticNetworkContinueCredentials?) -> Boolfn synthetic_network_expected_auth_credentials(url : String) -> SyntheticNetworkContinueCredentials?fn synthetic_network_extract_set_cookie_entries(headers : Array[Json], base_url : String, now_seconds : Int) -> Array[SyntheticNetworkCookie]fn synthetic_network_first_query_value(url : String, key : String) -> String?fn synthetic_network_infer_mime_type(url : String, path : String) -> Stringfn synthetic_network_int_query_param(url : String, key : String, default_value : Int) -> Intfn synthetic_network_is_valid_continue_url(url : String) -> Boolfn synthetic_network_is_valid_header_name_token(name : String) -> Boolfn synthetic_network_is_valid_header_string_value(value : String) -> Boolfn synthetic_network_normalize_continue_credentials(raw_credentials : Json) -> Result[SyntheticNetworkContinueCredentials, String]fn synthetic_network_normalize_request_cookie_entries(raw_cookies : Json?) -> Result[SyntheticNetworkCookieOverride, String]fn synthetic_network_normalize_response_overrides(raw_overrides : Json?) -> Result[SyntheticNetworkResponseOverrides, String]fn synthetic_network_normalize_set_cookie_override_entry(entry : Map[String, Json], name : String, value_text : String, base_url : String, now_seconds : Int) -> Result[SyntheticNetworkSetCookieOverrideEntry, String]fn synthetic_network_parse_document_cookie_assignment(cookie_assignment : String, base_url : String, default_path : String, now_seconds : Int) -> SyntheticNetworkCookie?fn synthetic_network_parse_set_cookie_header_value(header_value : String, base_url : String, now_seconds : Int) -> SyntheticNetworkCookie?fn synthetic_network_request_body_size(raw_value : Json?, field_name : String) -> Result[Int, String]fn synthetic_network_response_overrides_to_json(overrides : SyntheticNetworkResponseOverrides) -> Jsonfn synthetic_network_status_text_for_code(status : Int) -> Stringfn synthetic_network_string_from_bytes_value(raw_value : Json, field_name : String) -> Result[String, String]fn synthetic_network_text_from_bytes_value(raw_value : Json, field_name : String) -> Result[String, String]WebDriver BiDi synthetic network state and byte/query encoding helpers for crater adapters