network
AdAncestry
dataclass
Encapsulates the script ancestry and the root script filter list rule that caused the resource or element to be labeled as an ad.
Source code in zendriver/cdp/network.py
ancestry_chain: typing.List[AdScriptIdentifier]
instance-attribute
root_script_filterlist_rule: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(ancestry_chain, root_script_filterlist_rule=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
AdProvenance
dataclass
Represents the provenance of an ad resource or element. Only one of
filterlistRule or adScriptAncestry can be set. If filterlistRule
is provided, the resource URL directly matches a filter list rule. If
adScriptAncestry is provided, an ad script initiated the resource fetch or
appended the element to the DOM. If neither is provided, the entity is
known to be an ad, but provenance tracking information is unavailable.
Source code in zendriver/cdp/network.py
ad_script_ancestry: typing.Optional[AdAncestry] = None
class-attribute
instance-attribute
filterlist_rule: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(filterlist_rule=None, ad_script_ancestry=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
AdScriptIdentifier
dataclass
Identifies the script on the stack that caused a resource or element to be labeled as an ad. For resources, this indicates the context that triggered the fetch. For elements, this indicates the context that caused the element to be appended to the DOM.
Source code in zendriver/cdp/network.py
debugger_id: runtime.UniqueDebuggerId
instance-attribute
name: str
instance-attribute
script_id: runtime.ScriptId
instance-attribute
__init__(script_id, debugger_id, name)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
AlternateProtocolUsage
Bases: Enum
The reason why Chrome uses a specific transport protocol for HTTP semantics.
Source code in zendriver/cdp/network.py
ALTERNATIVE_JOB_WON_RACE = 'alternativeJobWonRace'
class-attribute
instance-attribute
ALTERNATIVE_JOB_WON_WITHOUT_RACE = 'alternativeJobWonWithoutRace'
class-attribute
instance-attribute
BROKEN = 'broken'
class-attribute
instance-attribute
DNS_ALPN_H3_JOB_WON_RACE = 'dnsAlpnH3JobWonRace'
class-attribute
instance-attribute
DNS_ALPN_H3_JOB_WON_WITHOUT_RACE = 'dnsAlpnH3JobWonWithoutRace'
class-attribute
instance-attribute
MAIN_JOB_WON_RACE = 'mainJobWonRace'
class-attribute
instance-attribute
MAPPING_MISSING = 'mappingMissing'
class-attribute
instance-attribute
UNSPECIFIED_REASON = 'unspecifiedReason'
class-attribute
instance-attribute
from_json(json)
classmethod
AssociatedCookie
dataclass
A cookie associated with the request which may or may not be sent with it. Includes the cookies itself and reasons for blocking or exemption.
Source code in zendriver/cdp/network.py
blocked_reasons: typing.List[CookieBlockedReason]
instance-attribute
cookie: Cookie
instance-attribute
exemption_reason: typing.Optional[CookieExemptionReason] = None
class-attribute
instance-attribute
__init__(cookie, blocked_reasons, exemption_reason=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
AuthChallenge
dataclass
Authorization challenge for HTTP status code 401 or 407.
Source code in zendriver/cdp/network.py
origin: str
instance-attribute
realm: str
instance-attribute
scheme: str
instance-attribute
source: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(origin, scheme, realm, source=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
AuthChallengeResponse
dataclass
Response to an AuthChallenge.
Source code in zendriver/cdp/network.py
password: typing.Optional[str] = None
class-attribute
instance-attribute
response: str
instance-attribute
username: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(response, username=None, password=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
BlockPattern
dataclass
Source code in zendriver/cdp/network.py
block: bool
instance-attribute
url_pattern: str
instance-attribute
__init__(url_pattern, block)
from_json(json)
classmethod
BlockedReason
Bases: Enum
The reason why request was blocked.
Source code in zendriver/cdp/network.py
COEP_FRAME_RESOURCE_NEEDS_COEP_HEADER = 'coep-frame-resource-needs-coep-header'
class-attribute
instance-attribute
CONTENT_TYPE = 'content-type'
class-attribute
instance-attribute
COOP_SANDBOXED_IFRAME_CANNOT_NAVIGATE_TO_COOP_PAGE = 'coop-sandboxed-iframe-cannot-navigate-to-coop-page'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN = 'corp-not-same-origin'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP_AND_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip'
class-attribute
instance-attribute
CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip'
class-attribute
instance-attribute
CORP_NOT_SAME_SITE = 'corp-not-same-site'
class-attribute
instance-attribute
CSP = 'csp'
class-attribute
instance-attribute
INSPECTOR = 'inspector'
class-attribute
instance-attribute
INTEGRITY = 'integrity'
class-attribute
instance-attribute
MIXED_CONTENT = 'mixed-content'
class-attribute
instance-attribute
ORIGIN = 'origin'
class-attribute
instance-attribute
OTHER = 'other'
class-attribute
instance-attribute
SRI_MESSAGE_SIGNATURE_MISMATCH = 'sri-message-signature-mismatch'
class-attribute
instance-attribute
SUBRESOURCE_FILTER = 'subresource-filter'
class-attribute
instance-attribute
from_json(json)
classmethod
BlockedSetCookieWithReason
dataclass
A cookie which was not stored from a response with the corresponding reason.
Source code in zendriver/cdp/network.py
blocked_reasons: typing.List[SetCookieBlockedReason]
instance-attribute
cookie: typing.Optional[Cookie] = None
class-attribute
instance-attribute
cookie_line: str
instance-attribute
__init__(blocked_reasons, cookie_line, cookie=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CachedResource
dataclass
Information about the cached resource.
Source code in zendriver/cdp/network.py
body_size: float
instance-attribute
response: typing.Optional[Response] = None
class-attribute
instance-attribute
type_: ResourceType
instance-attribute
url: str
instance-attribute
__init__(url, type_, body_size, response=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CertificateTransparencyCompliance
Bases: Enum
Whether the request complied with Certificate Transparency policy.
Source code in zendriver/cdp/network.py
COMPLIANT = 'compliant'
class-attribute
instance-attribute
NOT_COMPLIANT = 'not-compliant'
class-attribute
instance-attribute
UNKNOWN = 'unknown'
class-attribute
instance-attribute
from_json(json)
classmethod
ChallengeEventDetails
dataclass
Session event details specific to challenges.
Source code in zendriver/cdp/network.py
challenge: str
instance-attribute
challenge_result: str
instance-attribute
__init__(challenge_result, challenge)
from_json(json)
classmethod
ClientSecurityState
dataclass
Source code in zendriver/cdp/network.py
initiator_ip_address_space: IPAddressSpace
instance-attribute
initiator_is_secure_context: bool
instance-attribute
local_network_access_request_policy: LocalNetworkAccessRequestPolicy
instance-attribute
__init__(initiator_is_secure_context, initiator_ip_address_space, local_network_access_request_policy)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
ConnectTiming
dataclass
Source code in zendriver/cdp/network.py
request_time: float
instance-attribute
__init__(request_time)
from_json(json)
classmethod
ConnectionType
Bases: Enum
The underlying connection technology that the browser is supposedly using.
Source code in zendriver/cdp/network.py
BLUETOOTH = 'bluetooth'
class-attribute
instance-attribute
CELLULAR2G = 'cellular2g'
class-attribute
instance-attribute
CELLULAR3G = 'cellular3g'
class-attribute
instance-attribute
CELLULAR4G = 'cellular4g'
class-attribute
instance-attribute
ETHERNET = 'ethernet'
class-attribute
instance-attribute
NONE = 'none'
class-attribute
instance-attribute
OTHER = 'other'
class-attribute
instance-attribute
WIFI = 'wifi'
class-attribute
instance-attribute
WIMAX = 'wimax'
class-attribute
instance-attribute
from_json(json)
classmethod
ContentEncoding
Bases: Enum
List of content encodings supported by the backend.
Source code in zendriver/cdp/network.py
BR = 'br'
class-attribute
instance-attribute
DEFLATE = 'deflate'
class-attribute
instance-attribute
GZIP = 'gzip'
class-attribute
instance-attribute
ZSTD = 'zstd'
class-attribute
instance-attribute
from_json(json)
classmethod
ContentSecurityPolicySource
Bases: Enum
Source code in zendriver/cdp/network.py
HTTP = 'HTTP'
class-attribute
instance-attribute
META = 'Meta'
class-attribute
instance-attribute
from_json(json)
classmethod
ContentSecurityPolicyStatus
dataclass
Source code in zendriver/cdp/network.py
effective_directives: str
instance-attribute
is_enforced: bool
instance-attribute
source: ContentSecurityPolicySource
instance-attribute
__init__(effective_directives, is_enforced, source)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
Cookie
dataclass
Cookie object
Source code in zendriver/cdp/network.py
1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 | |
domain: str
instance-attribute
expires: typing.Optional[float] = None
class-attribute
instance-attribute
http_only: bool
instance-attribute
name: str
instance-attribute
partition_key: typing.Optional[CookiePartitionKey] = None
class-attribute
instance-attribute
partition_key_opaque: typing.Optional[bool] = None
class-attribute
instance-attribute
path: str
instance-attribute
priority: CookiePriority
instance-attribute
same_site: typing.Optional[CookieSameSite] = None
class-attribute
instance-attribute
secure: bool
instance-attribute
session: bool
instance-attribute
size: int
instance-attribute
source_port: int
instance-attribute
source_scheme: CookieSourceScheme
instance-attribute
value: str
instance-attribute
__init__(name, value, domain, path, size, http_only, secure, session, priority, source_scheme, source_port, expires=None, same_site=None, partition_key=None, partition_key_opaque=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CookieBlockedReason
Bases: Enum
Types of reasons why a cookie may not be sent with a request.
Source code in zendriver/cdp/network.py
ANONYMOUS_CONTEXT = 'AnonymousContext'
class-attribute
instance-attribute
DOMAIN_MISMATCH = 'DomainMismatch'
class-attribute
instance-attribute
NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE = 'NameValuePairExceedsMaxSize'
class-attribute
instance-attribute
NOT_ON_PATH = 'NotOnPath'
class-attribute
instance-attribute
PORT_MISMATCH = 'PortMismatch'
class-attribute
instance-attribute
SAME_SITE_LAX = 'SameSiteLax'
class-attribute
instance-attribute
SAME_SITE_NONE_INSECURE = 'SameSiteNoneInsecure'
class-attribute
instance-attribute
SAME_SITE_STRICT = 'SameSiteStrict'
class-attribute
instance-attribute
SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SameSiteUnspecifiedTreatedAsLax'
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_LAX = 'SchemefulSameSiteLax'
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_STRICT = 'SchemefulSameSiteStrict'
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SchemefulSameSiteUnspecifiedTreatedAsLax'
class-attribute
instance-attribute
SCHEME_MISMATCH = 'SchemeMismatch'
class-attribute
instance-attribute
SECURE_ONLY = 'SecureOnly'
class-attribute
instance-attribute
THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET = 'ThirdPartyBlockedInFirstPartySet'
class-attribute
instance-attribute
THIRD_PARTY_PHASEOUT = 'ThirdPartyPhaseout'
class-attribute
instance-attribute
UNKNOWN_ERROR = 'UnknownError'
class-attribute
instance-attribute
USER_PREFERENCES = 'UserPreferences'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieExemptionReason
Bases: Enum
Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
Source code in zendriver/cdp/network.py
ENTERPRISE_POLICY = 'EnterprisePolicy'
class-attribute
instance-attribute
NONE = 'None'
class-attribute
instance-attribute
SAME_SITE_NONE_COOKIES_IN_SANDBOX = 'SameSiteNoneCookiesInSandbox'
class-attribute
instance-attribute
SCHEME = 'Scheme'
class-attribute
instance-attribute
STORAGE_ACCESS = 'StorageAccess'
class-attribute
instance-attribute
TOP_LEVEL_STORAGE_ACCESS = 'TopLevelStorageAccess'
class-attribute
instance-attribute
TOP_LEVEL_TPCD_DEPRECATION_TRIAL = 'TopLevelTPCDDeprecationTrial'
class-attribute
instance-attribute
TPCD_DEPRECATION_TRIAL = 'TPCDDeprecationTrial'
class-attribute
instance-attribute
TPCD_HEURISTICS = 'TPCDHeuristics'
class-attribute
instance-attribute
TPCD_METADATA = 'TPCDMetadata'
class-attribute
instance-attribute
USER_SETTING = 'UserSetting'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieParam
dataclass
Cookie parameter object
Source code in zendriver/cdp/network.py
1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 | |
domain: typing.Optional[str] = None
class-attribute
instance-attribute
expires: typing.Optional[TimeSinceEpoch] = None
class-attribute
instance-attribute
http_only: typing.Optional[bool] = None
class-attribute
instance-attribute
name: str
instance-attribute
partition_key: typing.Optional[CookiePartitionKey] = None
class-attribute
instance-attribute
path: typing.Optional[str] = None
class-attribute
instance-attribute
priority: typing.Optional[CookiePriority] = None
class-attribute
instance-attribute
same_site: typing.Optional[CookieSameSite] = None
class-attribute
instance-attribute
secure: typing.Optional[bool] = None
class-attribute
instance-attribute
source_port: typing.Optional[int] = None
class-attribute
instance-attribute
source_scheme: typing.Optional[CookieSourceScheme] = None
class-attribute
instance-attribute
url: typing.Optional[str] = None
class-attribute
instance-attribute
value: str
instance-attribute
__init__(name, value, url=None, domain=None, path=None, secure=None, http_only=None, same_site=None, expires=None, priority=None, source_scheme=None, source_port=None, partition_key=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CookiePartitionKey
dataclass
cookiePartitionKey object The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.
Source code in zendriver/cdp/network.py
has_cross_site_ancestor: bool
instance-attribute
top_level_site: str
instance-attribute
__init__(top_level_site, has_cross_site_ancestor)
from_json(json)
classmethod
CookiePriority
Bases: Enum
Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00
Source code in zendriver/cdp/network.py
HIGH = 'High'
class-attribute
instance-attribute
LOW = 'Low'
class-attribute
instance-attribute
MEDIUM = 'Medium'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieSameSite
Bases: Enum
Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
Source code in zendriver/cdp/network.py
LAX = 'Lax'
class-attribute
instance-attribute
NONE = 'None'
class-attribute
instance-attribute
STRICT = 'Strict'
class-attribute
instance-attribute
from_json(json)
classmethod
CookieSourceScheme
Bases: Enum
Represents the source scheme of the origin that originally set the cookie. A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.
Source code in zendriver/cdp/network.py
NON_SECURE = 'NonSecure'
class-attribute
instance-attribute
SECURE = 'Secure'
class-attribute
instance-attribute
UNSET = 'Unset'
class-attribute
instance-attribute
from_json(json)
classmethod
CorsError
Bases: Enum
The reason why request was blocked.
Source code in zendriver/cdp/network.py
ALLOW_ORIGIN_MISMATCH = 'AllowOriginMismatch'
class-attribute
instance-attribute
CORS_DISABLED_SCHEME = 'CorsDisabledScheme'
class-attribute
instance-attribute
DISALLOWED_BY_MODE = 'DisallowedByMode'
class-attribute
instance-attribute
HEADER_DISALLOWED_BY_PREFLIGHT_RESPONSE = 'HeaderDisallowedByPreflightResponse'
class-attribute
instance-attribute
INSECURE_LOCAL_NETWORK = 'InsecureLocalNetwork'
class-attribute
instance-attribute
INVALID_ALLOW_CREDENTIALS = 'InvalidAllowCredentials'
class-attribute
instance-attribute
INVALID_ALLOW_HEADERS_PREFLIGHT_RESPONSE = 'InvalidAllowHeadersPreflightResponse'
class-attribute
instance-attribute
INVALID_ALLOW_METHODS_PREFLIGHT_RESPONSE = 'InvalidAllowMethodsPreflightResponse'
class-attribute
instance-attribute
INVALID_ALLOW_ORIGIN_VALUE = 'InvalidAllowOriginValue'
class-attribute
instance-attribute
INVALID_LOCAL_NETWORK_ACCESS = 'InvalidLocalNetworkAccess'
class-attribute
instance-attribute
INVALID_RESPONSE = 'InvalidResponse'
class-attribute
instance-attribute
LOCAL_NETWORK_ACCESS_PERMISSION_DENIED = 'LocalNetworkAccessPermissionDenied'
class-attribute
instance-attribute
METHOD_DISALLOWED_BY_PREFLIGHT_RESPONSE = 'MethodDisallowedByPreflightResponse'
class-attribute
instance-attribute
MISSING_ALLOW_ORIGIN_HEADER = 'MissingAllowOriginHeader'
class-attribute
instance-attribute
MULTIPLE_ALLOW_ORIGIN_VALUES = 'MultipleAllowOriginValues'
class-attribute
instance-attribute
NO_CORS_REDIRECT_MODE_NOT_FOLLOW = 'NoCorsRedirectModeNotFollow'
class-attribute
instance-attribute
PREFLIGHT_ALLOW_ORIGIN_MISMATCH = 'PreflightAllowOriginMismatch'
class-attribute
instance-attribute
PREFLIGHT_DISALLOWED_REDIRECT = 'PreflightDisallowedRedirect'
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_CREDENTIALS = 'PreflightInvalidAllowCredentials'
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_EXTERNAL = 'PreflightInvalidAllowExternal'
class-attribute
instance-attribute
PREFLIGHT_INVALID_ALLOW_ORIGIN_VALUE = 'PreflightInvalidAllowOriginValue'
class-attribute
instance-attribute
PREFLIGHT_INVALID_STATUS = 'PreflightInvalidStatus'
class-attribute
instance-attribute
PREFLIGHT_MISSING_ALLOW_EXTERNAL = 'PreflightMissingAllowExternal'
class-attribute
instance-attribute
PREFLIGHT_MISSING_ALLOW_ORIGIN_HEADER = 'PreflightMissingAllowOriginHeader'
class-attribute
instance-attribute
PREFLIGHT_MULTIPLE_ALLOW_ORIGIN_VALUES = 'PreflightMultipleAllowOriginValues'
class-attribute
instance-attribute
PREFLIGHT_WILDCARD_ORIGIN_NOT_ALLOWED = 'PreflightWildcardOriginNotAllowed'
class-attribute
instance-attribute
REDIRECT_CONTAINS_CREDENTIALS = 'RedirectContainsCredentials'
class-attribute
instance-attribute
WILDCARD_ORIGIN_NOT_ALLOWED = 'WildcardOriginNotAllowed'
class-attribute
instance-attribute
from_json(json)
classmethod
CorsErrorStatus
dataclass
Source code in zendriver/cdp/network.py
cors_error: CorsError
instance-attribute
failed_parameter: str
instance-attribute
__init__(cors_error, failed_parameter)
from_json(json)
classmethod
CreationEventDetails
dataclass
Session event details specific to creation.
Source code in zendriver/cdp/network.py
failed_request: typing.Optional[DeviceBoundSessionFailedRequest] = None
class-attribute
instance-attribute
fetch_result: DeviceBoundSessionFetchResult
instance-attribute
new_session: typing.Optional[DeviceBoundSession] = None
class-attribute
instance-attribute
__init__(fetch_result, new_session=None, failed_request=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CrossOriginEmbedderPolicyStatus
dataclass
Source code in zendriver/cdp/network.py
report_only_reporting_endpoint: typing.Optional[str] = None
class-attribute
instance-attribute
report_only_value: CrossOriginEmbedderPolicyValue
instance-attribute
reporting_endpoint: typing.Optional[str] = None
class-attribute
instance-attribute
value: CrossOriginEmbedderPolicyValue
instance-attribute
__init__(value, report_only_value, reporting_endpoint=None, report_only_reporting_endpoint=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CrossOriginEmbedderPolicyValue
Bases: Enum
Source code in zendriver/cdp/network.py
CREDENTIALLESS = 'Credentialless'
class-attribute
instance-attribute
NONE = 'None'
class-attribute
instance-attribute
REQUIRE_CORP = 'RequireCorp'
class-attribute
instance-attribute
from_json(json)
classmethod
CrossOriginOpenerPolicyStatus
dataclass
Source code in zendriver/cdp/network.py
report_only_reporting_endpoint: typing.Optional[str] = None
class-attribute
instance-attribute
report_only_value: CrossOriginOpenerPolicyValue
instance-attribute
reporting_endpoint: typing.Optional[str] = None
class-attribute
instance-attribute
value: CrossOriginOpenerPolicyValue
instance-attribute
__init__(value, report_only_value, reporting_endpoint=None, report_only_reporting_endpoint=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
CrossOriginOpenerPolicyValue
Bases: Enum
Source code in zendriver/cdp/network.py
NOOPENER_ALLOW_POPUPS = 'NoopenerAllowPopups'
class-attribute
instance-attribute
RESTRICT_PROPERTIES = 'RestrictProperties'
class-attribute
instance-attribute
RESTRICT_PROPERTIES_PLUS_COEP = 'RestrictPropertiesPlusCoep'
class-attribute
instance-attribute
SAME_ORIGIN = 'SameOrigin'
class-attribute
instance-attribute
SAME_ORIGIN_ALLOW_POPUPS = 'SameOriginAllowPopups'
class-attribute
instance-attribute
SAME_ORIGIN_PLUS_COEP = 'SameOriginPlusCoep'
class-attribute
instance-attribute
UNSAFE_NONE = 'UnsafeNone'
class-attribute
instance-attribute
from_json(json)
classmethod
DataReceived
dataclass
Fired when data chunk was received over the network.
Source code in zendriver/cdp/network.py
data: typing.Optional[str]
instance-attribute
data_length: int
instance-attribute
encoded_data_length: int
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, data_length, encoded_data_length, data)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DeviceBoundSession
dataclass
A device bound session.
Source code in zendriver/cdp/network.py
allowed_refresh_initiators: typing.List[str]
instance-attribute
cached_challenge: typing.Optional[str] = None
class-attribute
instance-attribute
cookie_cravings: typing.List[DeviceBoundSessionCookieCraving]
instance-attribute
expiry_date: TimeSinceEpoch
instance-attribute
inclusion_rules: DeviceBoundSessionInclusionRules
instance-attribute
key: DeviceBoundSessionKey
instance-attribute
refresh_url: str
instance-attribute
__init__(key, refresh_url, inclusion_rules, cookie_cravings, expiry_date, allowed_refresh_initiators, cached_challenge=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
DeviceBoundSessionCookieCraving
dataclass
A device bound session's cookie craving.
Source code in zendriver/cdp/network.py
domain: str
instance-attribute
http_only: bool
instance-attribute
name: str
instance-attribute
path: str
instance-attribute
same_site: typing.Optional[CookieSameSite] = None
class-attribute
instance-attribute
secure: bool
instance-attribute
__init__(name, domain, path, secure, http_only, same_site=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
DeviceBoundSessionEventId
Bases: str
A unique identifier for a device bound session event.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
DeviceBoundSessionEventOccurred
dataclass
EXPERIMENTAL
Triggered when a device bound session event occurs.
Source code in zendriver/cdp/network.py
challenge_event_details: typing.Optional[ChallengeEventDetails]
instance-attribute
creation_event_details: typing.Optional[CreationEventDetails]
instance-attribute
event_id: DeviceBoundSessionEventId
instance-attribute
refresh_event_details: typing.Optional[RefreshEventDetails]
instance-attribute
session_id: typing.Optional[str]
instance-attribute
site: str
instance-attribute
succeeded: bool
instance-attribute
termination_event_details: typing.Optional[TerminationEventDetails]
instance-attribute
__init__(event_id, site, succeeded, session_id, creation_event_details, refresh_event_details, termination_event_details, challenge_event_details)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DeviceBoundSessionFailedRequest
dataclass
Details about a failed device bound session network request.
Source code in zendriver/cdp/network.py
net_error: typing.Optional[str] = None
class-attribute
instance-attribute
request_url: str
instance-attribute
response_error: typing.Optional[int] = None
class-attribute
instance-attribute
response_error_body: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(request_url, net_error=None, response_error=None, response_error_body=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
DeviceBoundSessionFetchResult
Bases: Enum
A fetch result for a device bound session creation or refresh.
Source code in zendriver/cdp/network.py
3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 | |
BOUND_COOKIE_SET_FORBIDDEN = 'BoundCookieSetForbidden'
class-attribute
instance-attribute
EMPTY_SCOPE_SPECIFICATION_DOMAIN = 'EmptyScopeSpecificationDomain'
class-attribute
instance-attribute
EMPTY_SCOPE_SPECIFICATION_PATH = 'EmptyScopeSpecificationPath'
class-attribute
instance-attribute
EMPTY_SESSION_CONFIG = 'EmptySessionConfig'
class-attribute
instance-attribute
FAILED_TO_UNWRAP_KEY = 'FailedToUnwrapKey'
class-attribute
instance-attribute
FEDERATED_KEY_THUMBPRINT_MISMATCH = 'FederatedKeyThumbprintMismatch'
class-attribute
instance-attribute
FEDERATED_NOT_AUTHORIZED_BY_PROVIDER = 'FederatedNotAuthorizedByProvider'
class-attribute
instance-attribute
FEDERATED_NOT_AUTHORIZED_BY_RELYING_PARTY = 'FederatedNotAuthorizedByRelyingParty'
class-attribute
instance-attribute
INVALID_CHALLENGE = 'InvalidChallenge'
class-attribute
instance-attribute
INVALID_CONFIG_JSON = 'InvalidConfigJson'
class-attribute
instance-attribute
INVALID_CREDENTIALS_CONFIG = 'InvalidCredentialsConfig'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE = 'InvalidCredentialsCookie'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE_CREATION_TIME = 'InvalidCredentialsCookieCreationTime'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE_INVALID_DOMAIN = 'InvalidCredentialsCookieInvalidDomain'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE_NAME = 'InvalidCredentialsCookieName'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE_PARSING = 'InvalidCredentialsCookieParsing'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE_PREFIX = 'InvalidCredentialsCookiePrefix'
class-attribute
instance-attribute
INVALID_CREDENTIALS_COOKIE_UNPERMITTED_ATTRIBUTE = 'InvalidCredentialsCookieUnpermittedAttribute'
class-attribute
instance-attribute
INVALID_CREDENTIALS_EMPTY_NAME = 'InvalidCredentialsEmptyName'
class-attribute
instance-attribute
INVALID_CREDENTIALS_TYPE = 'InvalidCredentialsType'
class-attribute
instance-attribute
INVALID_FEDERATED_KEY = 'InvalidFederatedKey'
class-attribute
instance-attribute
INVALID_FEDERATED_SESSION_PROVIDER_FAILED_TO_RESTORE_KEY = 'InvalidFederatedSessionProviderFailedToRestoreKey'
class-attribute
instance-attribute
INVALID_FEDERATED_SESSION_PROVIDER_SESSION_MISSING = 'InvalidFederatedSessionProviderSessionMissing'
class-attribute
instance-attribute
INVALID_FEDERATED_SESSION_URL = 'InvalidFederatedSessionUrl'
class-attribute
instance-attribute
INVALID_FEDERATED_SESSION_WRONG_PROVIDER_ORIGIN = 'InvalidFederatedSessionWrongProviderOrigin'
class-attribute
instance-attribute
INVALID_FETCHER_URL = 'InvalidFetcherUrl'
class-attribute
instance-attribute
INVALID_REFRESH_URL = 'InvalidRefreshUrl'
class-attribute
instance-attribute
INVALID_SCOPE_INCLUDE_SITE = 'InvalidScopeIncludeSite'
class-attribute
instance-attribute
INVALID_SCOPE_ORIGIN = 'InvalidScopeOrigin'
class-attribute
instance-attribute
INVALID_SCOPE_RULE_HOST_PATTERN = 'InvalidScopeRuleHostPattern'
class-attribute
instance-attribute
INVALID_SCOPE_RULE_PATH = 'InvalidScopeRulePath'
class-attribute
instance-attribute
INVALID_SCOPE_SPECIFICATION = 'InvalidScopeSpecification'
class-attribute
instance-attribute
INVALID_SCOPE_SPECIFICATION_TYPE = 'InvalidScopeSpecificationType'
class-attribute
instance-attribute
INVALID_SESSION_ID = 'InvalidSessionId'
class-attribute
instance-attribute
KEY_ERROR = 'KeyError'
class-attribute
instance-attribute
MISMATCHED_SESSION_ID = 'MismatchedSessionId'
class-attribute
instance-attribute
MISSING_SCOPE = 'MissingScope'
class-attribute
instance-attribute
MISSING_SCOPE_INCLUDE_SITE = 'MissingScopeIncludeSite'
class-attribute
instance-attribute
MISSING_SCOPE_SPECIFICATION_TYPE = 'MissingScopeSpecificationType'
class-attribute
instance-attribute
NET_ERROR = 'NetError'
class-attribute
instance-attribute
NO_CREDENTIALS = 'NoCredentials'
class-attribute
instance-attribute
PERSISTENT_HTTP_ERROR = 'PersistentHttpError'
class-attribute
instance-attribute
PROXY_ERROR = 'ProxyError'
class-attribute
instance-attribute
REFRESH_INITIATOR_INVALID_HOST_PATTERN = 'RefreshInitiatorInvalidHostPattern'
class-attribute
instance-attribute
REFRESH_INITIATOR_NOT_STRING = 'RefreshInitiatorNotString'
class-attribute
instance-attribute
REFRESH_URL_SAME_SITE_MISMATCH = 'RefreshUrlSameSiteMismatch'
class-attribute
instance-attribute
REGISTRATION_ATTEMPTED_CHALLENGE = 'RegistrationAttemptedChallenge'
class-attribute
instance-attribute
RELYING_PARTY_WELL_KNOWN_HAS_RELYING_ORIGINS = 'RelyingPartyWellKnownHasRelyingOrigins'
class-attribute
instance-attribute
RELYING_PARTY_WELL_KNOWN_MALFORMED = 'RelyingPartyWellKnownMalformed'
class-attribute
instance-attribute
RELYING_PARTY_WELL_KNOWN_UNAVAILABLE = 'RelyingPartyWellKnownUnavailable'
class-attribute
instance-attribute
SCOPE_ORIGIN_CONTAINS_PATH = 'ScopeOriginContainsPath'
class-attribute
instance-attribute
SCOPE_ORIGIN_SAME_SITE_MISMATCH = 'ScopeOriginSameSiteMismatch'
class-attribute
instance-attribute
SCOPE_RULE_ORIGIN_SCOPED_HOST_PATTERN_MISMATCH = 'ScopeRuleOriginScopedHostPatternMismatch'
class-attribute
instance-attribute
SCOPE_RULE_SITE_SCOPED_HOST_PATTERN_MISMATCH = 'ScopeRuleSiteScopedHostPatternMismatch'
class-attribute
instance-attribute
SERVER_REQUESTED_TERMINATION = 'ServerRequestedTermination'
class-attribute
instance-attribute
SESSION_DELETED_DURING_REFRESH = 'SessionDeletedDuringRefresh'
class-attribute
instance-attribute
SESSION_PROVIDER_WELL_KNOWN_HAS_PROVIDER_ORIGIN = 'SessionProviderWellKnownHasProviderOrigin'
class-attribute
instance-attribute
SESSION_PROVIDER_WELL_KNOWN_MALFORMED = 'SessionProviderWellKnownMalformed'
class-attribute
instance-attribute
SESSION_PROVIDER_WELL_KNOWN_UNAVAILABLE = 'SessionProviderWellKnownUnavailable'
class-attribute
instance-attribute
SIGNING_ERROR = 'SigningError'
class-attribute
instance-attribute
SIGNING_QUOTA_EXCEEDED = 'SigningQuotaExceeded'
class-attribute
instance-attribute
SUBDOMAIN_REGISTRATION_UNAUTHORIZED = 'SubdomainRegistrationUnauthorized'
class-attribute
instance-attribute
SUBDOMAIN_REGISTRATION_WELL_KNOWN_MALFORMED = 'SubdomainRegistrationWellKnownMalformed'
class-attribute
instance-attribute
SUBDOMAIN_REGISTRATION_WELL_KNOWN_UNAVAILABLE = 'SubdomainRegistrationWellKnownUnavailable'
class-attribute
instance-attribute
SUCCESS = 'Success'
class-attribute
instance-attribute
TOO_MANY_CHALLENGES = 'TooManyChallenges'
class-attribute
instance-attribute
TOO_MANY_RELYING_ORIGIN_LABELS = 'TooManyRelyingOriginLabels'
class-attribute
instance-attribute
TRANSIENT_HTTP_ERROR = 'TransientHttpError'
class-attribute
instance-attribute
from_json(json)
classmethod
DeviceBoundSessionInclusionRules
dataclass
A device bound session's inclusion rules.
Source code in zendriver/cdp/network.py
include_site: bool
instance-attribute
origin: str
instance-attribute
url_rules: typing.List[DeviceBoundSessionUrlRule]
instance-attribute
__init__(origin, include_site, url_rules)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DeviceBoundSessionKey
dataclass
Unique identifier for a device bound session.
Source code in zendriver/cdp/network.py
id_: str
instance-attribute
site: str
instance-attribute
__init__(site, id_)
from_json(json)
classmethod
DeviceBoundSessionUrlRule
dataclass
A device bound session's inclusion URL rule.
Source code in zendriver/cdp/network.py
host_pattern: str
instance-attribute
path_prefix: str
instance-attribute
rule_type: str
instance-attribute
__init__(rule_type, host_pattern, path_prefix)
from_json(json)
classmethod
DeviceBoundSessionWithUsage
dataclass
How a device bound session was used during a request.
Source code in zendriver/cdp/network.py
session_key: DeviceBoundSessionKey
instance-attribute
usage: str
instance-attribute
__init__(session_key, usage)
from_json(json)
classmethod
DeviceBoundSessionsAdded
dataclass
EXPERIMENTAL
Triggered when the initial set of device bound sessions is added.
Source code in zendriver/cdp/network.py
sessions: typing.List[DeviceBoundSession]
instance-attribute
__init__(sessions)
DirectSocketDnsQueryType
Bases: Enum
Source code in zendriver/cdp/network.py
IPV4 = 'ipv4'
class-attribute
instance-attribute
IPV6 = 'ipv6'
class-attribute
instance-attribute
from_json(json)
classmethod
DirectTCPSocketAborted
dataclass
EXPERIMENTAL
Fired when direct_socket.TCPSocket is aborted.
Source code in zendriver/cdp/network.py
error_message: str
instance-attribute
identifier: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, error_message, timestamp)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectTCPSocketChunkReceived
dataclass
EXPERIMENTAL
Fired when data is received from tcp direct socket stream.
Source code in zendriver/cdp/network.py
data: str
instance-attribute
identifier: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, data, timestamp)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectTCPSocketChunkSent
dataclass
EXPERIMENTAL
Fired when data is sent to tcp direct socket stream.
Source code in zendriver/cdp/network.py
data: str
instance-attribute
identifier: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, data, timestamp)
from_json(json)
classmethod
DirectTCPSocketClosed
dataclass
EXPERIMENTAL
Fired when direct_socket.TCPSocket is closed.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, timestamp)
DirectTCPSocketCreated
dataclass
EXPERIMENTAL
Fired upon direct_socket.TCPSocket creation.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
initiator: typing.Optional[Initiator]
instance-attribute
options: DirectTCPSocketOptions
instance-attribute
remote_addr: str
instance-attribute
remote_port: int
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, remote_addr, remote_port, options, timestamp, initiator)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectTCPSocketOpened
dataclass
EXPERIMENTAL
Fired when direct_socket.TCPSocket connection is opened.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
local_addr: typing.Optional[str]
instance-attribute
local_port: typing.Optional[int]
instance-attribute
remote_addr: str
instance-attribute
remote_port: int
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, remote_addr, remote_port, timestamp, local_addr, local_port)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectTCPSocketOptions
dataclass
Source code in zendriver/cdp/network.py
dns_query_type: typing.Optional[DirectSocketDnsQueryType] = None
class-attribute
instance-attribute
keep_alive_delay: typing.Optional[float] = None
class-attribute
instance-attribute
no_delay: bool
instance-attribute
receive_buffer_size: typing.Optional[float] = None
class-attribute
instance-attribute
send_buffer_size: typing.Optional[float] = None
class-attribute
instance-attribute
__init__(no_delay, keep_alive_delay=None, send_buffer_size=None, receive_buffer_size=None, dns_query_type=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
DirectUDPMessage
dataclass
Source code in zendriver/cdp/network.py
data: str
instance-attribute
remote_addr: typing.Optional[str] = None
class-attribute
instance-attribute
remote_port: typing.Optional[int] = None
class-attribute
instance-attribute
__init__(data, remote_addr=None, remote_port=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
DirectUDPSocketAborted
dataclass
EXPERIMENTAL
Fired when direct_socket.UDPSocket is aborted.
Source code in zendriver/cdp/network.py
error_message: str
instance-attribute
identifier: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, error_message, timestamp)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectUDPSocketChunkReceived
dataclass
EXPERIMENTAL
Fired when message is received from udp direct socket stream.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
message: DirectUDPMessage
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, message, timestamp)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectUDPSocketChunkSent
dataclass
EXPERIMENTAL
Fired when message is sent to udp direct socket stream.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
message: DirectUDPMessage
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, message, timestamp)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectUDPSocketClosed
dataclass
EXPERIMENTAL
Fired when direct_socket.UDPSocket is closed.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, timestamp)
DirectUDPSocketCreated
dataclass
EXPERIMENTAL
Fired upon direct_socket.UDPSocket creation.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
initiator: typing.Optional[Initiator]
instance-attribute
options: DirectUDPSocketOptions
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, options, timestamp, initiator)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectUDPSocketJoinedMulticastGroup
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
ip_address: str
instance-attribute
__init__(identifier, ip_address)
DirectUDPSocketLeftMulticastGroup
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
ip_address: str
instance-attribute
__init__(identifier, ip_address)
DirectUDPSocketOpened
dataclass
EXPERIMENTAL
Fired when direct_socket.UDPSocket connection is opened.
Source code in zendriver/cdp/network.py
identifier: RequestId
instance-attribute
local_addr: str
instance-attribute
local_port: int
instance-attribute
remote_addr: typing.Optional[str]
instance-attribute
remote_port: typing.Optional[int]
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(identifier, local_addr, local_port, timestamp, remote_addr, remote_port)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
DirectUDPSocketOptions
dataclass
Source code in zendriver/cdp/network.py
2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 | |
dns_query_type: typing.Optional[DirectSocketDnsQueryType] = None
class-attribute
instance-attribute
local_addr: typing.Optional[str] = None
class-attribute
instance-attribute
local_port: typing.Optional[int] = None
class-attribute
instance-attribute
multicast_allow_address_sharing: typing.Optional[bool] = None
class-attribute
instance-attribute
multicast_loopback: typing.Optional[bool] = None
class-attribute
instance-attribute
multicast_time_to_live: typing.Optional[int] = None
class-attribute
instance-attribute
receive_buffer_size: typing.Optional[float] = None
class-attribute
instance-attribute
remote_addr: typing.Optional[str] = None
class-attribute
instance-attribute
remote_port: typing.Optional[int] = None
class-attribute
instance-attribute
send_buffer_size: typing.Optional[float] = None
class-attribute
instance-attribute
__init__(remote_addr=None, remote_port=None, local_addr=None, local_port=None, dns_query_type=None, send_buffer_size=None, receive_buffer_size=None, multicast_loopback=None, multicast_time_to_live=None, multicast_allow_address_sharing=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
ErrorReason
Bases: Enum
Network level fetch failure reason.
Source code in zendriver/cdp/network.py
ABORTED = 'Aborted'
class-attribute
instance-attribute
ACCESS_DENIED = 'AccessDenied'
class-attribute
instance-attribute
ADDRESS_UNREACHABLE = 'AddressUnreachable'
class-attribute
instance-attribute
BLOCKED_BY_CLIENT = 'BlockedByClient'
class-attribute
instance-attribute
BLOCKED_BY_RESPONSE = 'BlockedByResponse'
class-attribute
instance-attribute
CONNECTION_ABORTED = 'ConnectionAborted'
class-attribute
instance-attribute
CONNECTION_CLOSED = 'ConnectionClosed'
class-attribute
instance-attribute
CONNECTION_FAILED = 'ConnectionFailed'
class-attribute
instance-attribute
CONNECTION_REFUSED = 'ConnectionRefused'
class-attribute
instance-attribute
CONNECTION_RESET = 'ConnectionReset'
class-attribute
instance-attribute
FAILED = 'Failed'
class-attribute
instance-attribute
INTERNET_DISCONNECTED = 'InternetDisconnected'
class-attribute
instance-attribute
NAME_NOT_RESOLVED = 'NameNotResolved'
class-attribute
instance-attribute
TIMED_OUT = 'TimedOut'
class-attribute
instance-attribute
from_json(json)
classmethod
EventSourceMessageReceived
dataclass
Fired when EventSource message is received.
Source code in zendriver/cdp/network.py
data: str
instance-attribute
event_id: str
instance-attribute
event_name: str
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, event_name, event_id, data)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
ExemptedSetCookieWithReason
dataclass
A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.
Source code in zendriver/cdp/network.py
cookie: Cookie
instance-attribute
cookie_line: str
instance-attribute
exemption_reason: CookieExemptionReason
instance-attribute
__init__(exemption_reason, cookie_line, cookie)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
Headers
Bases: dict
Request / response headers as keys / values of JSON object.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
IPAddressSpace
Bases: Enum
Source code in zendriver/cdp/network.py
LOCAL = 'Local'
class-attribute
instance-attribute
LOOPBACK = 'Loopback'
class-attribute
instance-attribute
PUBLIC = 'Public'
class-attribute
instance-attribute
UNKNOWN = 'Unknown'
class-attribute
instance-attribute
from_json(json)
classmethod
Initiator
dataclass
Information about the request initiator.
Source code in zendriver/cdp/network.py
column_number: typing.Optional[float] = None
class-attribute
instance-attribute
line_number: typing.Optional[float] = None
class-attribute
instance-attribute
request_id: typing.Optional[RequestId] = None
class-attribute
instance-attribute
stack: typing.Optional[runtime.StackTrace] = None
class-attribute
instance-attribute
type_: str
instance-attribute
url: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(type_, stack=None, url=None, line_number=None, column_number=None, request_id=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
InterceptionId
Bases: str
Unique intercepted request identifier.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
InterceptionStage
Bases: Enum
Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
Source code in zendriver/cdp/network.py
HEADERS_RECEIVED = 'HeadersReceived'
class-attribute
instance-attribute
REQUEST = 'Request'
class-attribute
instance-attribute
from_json(json)
classmethod
LoadNetworkResourceOptions
dataclass
An options object that may be extended later to better support CORS, CORB and streaming.
Source code in zendriver/cdp/network.py
disable_cache: bool
instance-attribute
include_credentials: bool
instance-attribute
__init__(disable_cache, include_credentials)
from_json(json)
classmethod
LoadNetworkResourcePageResult
dataclass
An object providing the result of a network resource load.
Source code in zendriver/cdp/network.py
headers: typing.Optional[Headers] = None
class-attribute
instance-attribute
http_status_code: typing.Optional[float] = None
class-attribute
instance-attribute
net_error: typing.Optional[float] = None
class-attribute
instance-attribute
net_error_name: typing.Optional[str] = None
class-attribute
instance-attribute
stream: typing.Optional[io.StreamHandle] = None
class-attribute
instance-attribute
success: bool
instance-attribute
__init__(success, net_error=None, net_error_name=None, http_status_code=None, stream=None, headers=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
LoaderId
Bases: str
Unique loader identifier.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
LoadingFailed
dataclass
Fired when HTTP request has failed to load.
Source code in zendriver/cdp/network.py
blocked_reason: typing.Optional[BlockedReason]
instance-attribute
canceled: typing.Optional[bool]
instance-attribute
cors_error_status: typing.Optional[CorsErrorStatus]
instance-attribute
error_text: str
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
type_: ResourceType
instance-attribute
__init__(request_id, timestamp, type_, error_text, canceled, blocked_reason, cors_error_status)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
LoadingFinished
dataclass
Fired when HTTP request has finished loading.
Source code in zendriver/cdp/network.py
encoded_data_length: float
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, encoded_data_length)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
LocalNetworkAccessRequestPolicy
Bases: Enum
Source code in zendriver/cdp/network.py
ALLOW = 'Allow'
class-attribute
instance-attribute
BLOCK_FROM_INSECURE_TO_MORE_PRIVATE = 'BlockFromInsecureToMorePrivate'
class-attribute
instance-attribute
PERMISSION_BLOCK = 'PermissionBlock'
class-attribute
instance-attribute
PERMISSION_WARN = 'PermissionWarn'
class-attribute
instance-attribute
WARN_FROM_INSECURE_TO_MORE_PRIVATE = 'WarnFromInsecureToMorePrivate'
class-attribute
instance-attribute
from_json(json)
classmethod
MonotonicTime
Bases: float
Monotonically increasing time in seconds since an arbitrary point in the past.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
NetworkConditions
dataclass
Source code in zendriver/cdp/network.py
2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 | |
connection_type: typing.Optional[ConnectionType] = None
class-attribute
instance-attribute
download_throughput: float
instance-attribute
latency: float
instance-attribute
offline: typing.Optional[bool] = None
class-attribute
instance-attribute
packet_loss: typing.Optional[float] = None
class-attribute
instance-attribute
packet_queue_length: typing.Optional[int] = None
class-attribute
instance-attribute
packet_reordering: typing.Optional[bool] = None
class-attribute
instance-attribute
upload_throughput: float
instance-attribute
url_pattern: str
instance-attribute
__init__(url_pattern, latency, download_throughput, upload_throughput, connection_type=None, packet_loss=None, packet_queue_length=None, packet_reordering=None, offline=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
PolicyUpdated
dataclass
EXPERIMENTAL
Fired once security policy has been updated.
Source code in zendriver/cdp/network.py
PostDataEntry
dataclass
Post data entry for HTTP request
Source code in zendriver/cdp/network.py
bytes_: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(bytes_=None)
from_json(json)
classmethod
RefreshEventDetails
dataclass
Session event details specific to refresh.
Source code in zendriver/cdp/network.py
failed_request: typing.Optional[DeviceBoundSessionFailedRequest] = None
class-attribute
instance-attribute
fetch_result: typing.Optional[DeviceBoundSessionFetchResult] = None
class-attribute
instance-attribute
new_session: typing.Optional[DeviceBoundSession] = None
class-attribute
instance-attribute
refresh_result: str
instance-attribute
was_fully_proactive_refresh: bool
instance-attribute
__init__(refresh_result, was_fully_proactive_refresh, fetch_result=None, new_session=None, failed_request=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
RenderBlockingBehavior
Bases: Enum
The render-blocking behavior of a resource request.
Source code in zendriver/cdp/network.py
BLOCKING = 'Blocking'
class-attribute
instance-attribute
IN_BODY_PARSER_BLOCKING = 'InBodyParserBlocking'
class-attribute
instance-attribute
NON_BLOCKING = 'NonBlocking'
class-attribute
instance-attribute
NON_BLOCKING_DYNAMIC = 'NonBlockingDynamic'
class-attribute
instance-attribute
POTENTIALLY_BLOCKING = 'PotentiallyBlocking'
class-attribute
instance-attribute
from_json(json)
classmethod
ReportId
Bases: str
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
ReportStatus
Bases: Enum
The status of a Reporting API report.
Source code in zendriver/cdp/network.py
MARKED_FOR_REMOVAL = 'MarkedForRemoval'
class-attribute
instance-attribute
PENDING = 'Pending'
class-attribute
instance-attribute
QUEUED = 'Queued'
class-attribute
instance-attribute
SUCCESS = 'Success'
class-attribute
instance-attribute
from_json(json)
classmethod
ReportingApiEndpoint
dataclass
Source code in zendriver/cdp/network.py
group_name: str
instance-attribute
url: str
instance-attribute
__init__(url, group_name)
from_json(json)
classmethod
ReportingApiEndpointsChangedForOrigin
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/network.py
endpoints: typing.List[ReportingApiEndpoint]
instance-attribute
origin: str
instance-attribute
__init__(origin, endpoints)
from_json(json)
classmethod
ReportingApiReport
dataclass
An object representing a report generated by the Reporting API.
Source code in zendriver/cdp/network.py
body: dict
instance-attribute
completed_attempts: int
instance-attribute
depth: int
instance-attribute
destination: str
instance-attribute
id_: ReportId
instance-attribute
initiator_url: str
instance-attribute
status: ReportStatus
instance-attribute
timestamp: TimeSinceEpoch
instance-attribute
type_: str
instance-attribute
__init__(id_, initiator_url, destination, type_, timestamp, depth, completed_attempts, body, status)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
ReportingApiReportAdded
dataclass
EXPERIMENTAL
Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.
Source code in zendriver/cdp/network.py
ReportingApiReportUpdated
dataclass
EXPERIMENTAL
Source code in zendriver/cdp/network.py
Request
dataclass
HTTP request data.
Source code in zendriver/cdp/network.py
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 | |
has_post_data: typing.Optional[bool] = None
class-attribute
instance-attribute
headers: Headers
instance-attribute
initial_priority: ResourcePriority
instance-attribute
is_ad_related: typing.Optional[bool] = None
class-attribute
instance-attribute
is_link_preload: typing.Optional[bool] = None
class-attribute
instance-attribute
is_same_site: typing.Optional[bool] = None
class-attribute
instance-attribute
method: str
instance-attribute
mixed_content_type: typing.Optional[security.MixedContentType] = None
class-attribute
instance-attribute
post_data: typing.Optional[str] = None
class-attribute
instance-attribute
post_data_entries: typing.Optional[typing.List[PostDataEntry]] = None
class-attribute
instance-attribute
referrer_policy: str
instance-attribute
trust_token_params: typing.Optional[TrustTokenParams] = None
class-attribute
instance-attribute
url: str
instance-attribute
url_fragment: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(url, method, headers, initial_priority, referrer_policy, url_fragment=None, post_data=None, has_post_data=None, post_data_entries=None, mixed_content_type=None, is_link_preload=None, trust_token_params=None, is_same_site=None, is_ad_related=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
RequestId
Bases: str
Unique network request identifier. Note that this does not identify individual HTTP requests that are part of a network request.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
RequestIntercepted
dataclass
EXPERIMENTAL
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
Source code in zendriver/cdp/network.py
4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 | |
auth_challenge: typing.Optional[AuthChallenge]
instance-attribute
frame_id: page.FrameId
instance-attribute
interception_id: InterceptionId
instance-attribute
is_download: typing.Optional[bool]
instance-attribute
is_navigation_request: bool
instance-attribute
redirect_url: typing.Optional[str]
instance-attribute
request: Request
instance-attribute
request_id: typing.Optional[RequestId]
instance-attribute
resource_type: ResourceType
instance-attribute
response_error_reason: typing.Optional[ErrorReason]
instance-attribute
response_headers: typing.Optional[Headers]
instance-attribute
response_status_code: typing.Optional[int]
instance-attribute
__init__(interception_id, request, frame_id, resource_type, is_navigation_request, is_download, redirect_url, auth_challenge, response_error_reason, response_status_code, response_headers, request_id)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
RequestPattern
dataclass
Request pattern for interception.
Source code in zendriver/cdp/network.py
interception_stage: typing.Optional[InterceptionStage] = None
class-attribute
instance-attribute
resource_type: typing.Optional[ResourceType] = None
class-attribute
instance-attribute
url_pattern: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(url_pattern=None, resource_type=None, interception_stage=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
RequestServedFromCache
dataclass
Fired if request ended up loading from cache.
Source code in zendriver/cdp/network.py
RequestWillBeSent
dataclass
Fired when page is about to send HTTP request.
Source code in zendriver/cdp/network.py
4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 | |
document_url: str
instance-attribute
frame_id: typing.Optional[page.FrameId]
instance-attribute
has_user_gesture: typing.Optional[bool]
instance-attribute
initiator: Initiator
instance-attribute
loader_id: LoaderId
instance-attribute
redirect_has_extra_info: bool
instance-attribute
redirect_response: typing.Optional[Response]
instance-attribute
render_blocking_behavior: typing.Optional[RenderBlockingBehavior]
instance-attribute
request: Request
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
type_: typing.Optional[ResourceType]
instance-attribute
wall_time: TimeSinceEpoch
instance-attribute
__init__(request_id, loader_id, document_url, request, timestamp, wall_time, initiator, redirect_has_extra_info, redirect_response, type_, frame_id, has_user_gesture, render_blocking_behavior)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
RequestWillBeSentExtraInfo
dataclass
EXPERIMENTAL
Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.
Source code in zendriver/cdp/network.py
5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 | |
applied_network_conditions_id: typing.Optional[str]
instance-attribute
associated_cookies: typing.List[AssociatedCookie]
instance-attribute
client_security_state: typing.Optional[ClientSecurityState]
instance-attribute
connect_timing: ConnectTiming
instance-attribute
device_bound_session_usages: typing.Optional[typing.List[DeviceBoundSessionWithUsage]]
instance-attribute
headers: Headers
instance-attribute
request_id: RequestId
instance-attribute
site_has_cookie_in_other_partition: typing.Optional[bool]
instance-attribute
__init__(request_id, associated_cookies, headers, connect_timing, device_bound_session_usages, client_security_state, site_has_cookie_in_other_partition, applied_network_conditions_id)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
ResourceChangedPriority
dataclass
EXPERIMENTAL
Fired when resource loading priority is changed
Source code in zendriver/cdp/network.py
new_priority: ResourcePriority
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, new_priority, timestamp)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
ResourcePriority
Bases: Enum
Loading priority of a resource request.
Source code in zendriver/cdp/network.py
HIGH = 'High'
class-attribute
instance-attribute
LOW = 'Low'
class-attribute
instance-attribute
MEDIUM = 'Medium'
class-attribute
instance-attribute
VERY_HIGH = 'VeryHigh'
class-attribute
instance-attribute
VERY_LOW = 'VeryLow'
class-attribute
instance-attribute
from_json(json)
classmethod
ResourceTiming
dataclass
Timing information for the request.
Source code in zendriver/cdp/network.py
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | |
connect_end: float
instance-attribute
connect_start: float
instance-attribute
dns_end: float
instance-attribute
dns_start: float
instance-attribute
proxy_end: float
instance-attribute
proxy_start: float
instance-attribute
push_end: float
instance-attribute
push_start: float
instance-attribute
receive_headers_end: float
instance-attribute
receive_headers_start: float
instance-attribute
request_time: float
instance-attribute
send_end: float
instance-attribute
send_start: float
instance-attribute
ssl_end: float
instance-attribute
ssl_start: float
instance-attribute
worker_cache_lookup_start: typing.Optional[float] = None
class-attribute
instance-attribute
worker_fetch_start: float
instance-attribute
worker_ready: float
instance-attribute
worker_respond_with_settled: float
instance-attribute
worker_router_evaluation_start: typing.Optional[float] = None
class-attribute
instance-attribute
worker_start: float
instance-attribute
__init__(request_time, proxy_start, proxy_end, dns_start, dns_end, connect_start, connect_end, ssl_start, ssl_end, worker_start, worker_ready, worker_fetch_start, worker_respond_with_settled, send_start, send_end, push_start, push_end, receive_headers_start, receive_headers_end, worker_router_evaluation_start=None, worker_cache_lookup_start=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
ResourceType
Bases: Enum
Resource type as it was perceived by the rendering engine.
Source code in zendriver/cdp/network.py
CSP_VIOLATION_REPORT = 'CSPViolationReport'
class-attribute
instance-attribute
DOCUMENT = 'Document'
class-attribute
instance-attribute
EVENT_SOURCE = 'EventSource'
class-attribute
instance-attribute
FED_CM = 'FedCM'
class-attribute
instance-attribute
FETCH = 'Fetch'
class-attribute
instance-attribute
FONT = 'Font'
class-attribute
instance-attribute
IMAGE = 'Image'
class-attribute
instance-attribute
MANIFEST = 'Manifest'
class-attribute
instance-attribute
MEDIA = 'Media'
class-attribute
instance-attribute
OTHER = 'Other'
class-attribute
instance-attribute
PING = 'Ping'
class-attribute
instance-attribute
PREFETCH = 'Prefetch'
class-attribute
instance-attribute
PREFLIGHT = 'Preflight'
class-attribute
instance-attribute
SCRIPT = 'Script'
class-attribute
instance-attribute
SIGNED_EXCHANGE = 'SignedExchange'
class-attribute
instance-attribute
STYLESHEET = 'Stylesheet'
class-attribute
instance-attribute
TEXT_TRACK = 'TextTrack'
class-attribute
instance-attribute
WEB_SOCKET = 'WebSocket'
class-attribute
instance-attribute
XHR = 'XHR'
class-attribute
instance-attribute
from_json(json)
classmethod
Response
dataclass
HTTP response data.
Source code in zendriver/cdp/network.py
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 | |
alternate_protocol_usage: typing.Optional[AlternateProtocolUsage] = None
class-attribute
instance-attribute
cache_storage_cache_name: typing.Optional[str] = None
class-attribute
instance-attribute
charset: str
instance-attribute
connection_id: float
instance-attribute
connection_reused: bool
instance-attribute
encoded_data_length: float
instance-attribute
from_disk_cache: typing.Optional[bool] = None
class-attribute
instance-attribute
from_early_hints: typing.Optional[bool] = None
class-attribute
instance-attribute
from_prefetch_cache: typing.Optional[bool] = None
class-attribute
instance-attribute
from_service_worker: typing.Optional[bool] = None
class-attribute
instance-attribute
headers: Headers
instance-attribute
headers_text: typing.Optional[str] = None
class-attribute
instance-attribute
mime_type: str
instance-attribute
protocol: typing.Optional[str] = None
class-attribute
instance-attribute
remote_ip_address: typing.Optional[str] = None
class-attribute
instance-attribute
remote_port: typing.Optional[int] = None
class-attribute
instance-attribute
request_headers: typing.Optional[Headers] = None
class-attribute
instance-attribute
request_headers_text: typing.Optional[str] = None
class-attribute
instance-attribute
response_time: typing.Optional[TimeSinceEpoch] = None
class-attribute
instance-attribute
security_details: typing.Optional[SecurityDetails] = None
class-attribute
instance-attribute
security_state: security.SecurityState
instance-attribute
service_worker_response_source: typing.Optional[ServiceWorkerResponseSource] = None
class-attribute
instance-attribute
service_worker_router_info: typing.Optional[ServiceWorkerRouterInfo] = None
class-attribute
instance-attribute
status: int
instance-attribute
status_text: str
instance-attribute
timing: typing.Optional[ResourceTiming] = None
class-attribute
instance-attribute
url: str
instance-attribute
__init__(url, status, status_text, headers, mime_type, charset, connection_reused, connection_id, encoded_data_length, security_state, headers_text=None, request_headers=None, request_headers_text=None, remote_ip_address=None, remote_port=None, from_disk_cache=None, from_service_worker=None, from_prefetch_cache=None, from_early_hints=None, service_worker_router_info=None, timing=None, service_worker_response_source=None, response_time=None, cache_storage_cache_name=None, protocol=None, alternate_protocol_usage=None, security_details=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 | |
to_json()
Source code in zendriver/cdp/network.py
ResponseReceived
dataclass
Fired when HTTP response is available.
Source code in zendriver/cdp/network.py
frame_id: typing.Optional[page.FrameId]
instance-attribute
has_extra_info: bool
instance-attribute
loader_id: LoaderId
instance-attribute
request_id: RequestId
instance-attribute
response: Response
instance-attribute
timestamp: MonotonicTime
instance-attribute
type_: ResourceType
instance-attribute
__init__(request_id, loader_id, timestamp, type_, response, has_extra_info, frame_id)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
ResponseReceivedEarlyHints
dataclass
EXPERIMENTAL
Fired when 103 Early Hints headers is received in addition to the common response. Not every responseReceived event will have an responseReceivedEarlyHints fired. Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
Source code in zendriver/cdp/network.py
headers: Headers
instance-attribute
request_id: RequestId
instance-attribute
__init__(request_id, headers)
ResponseReceivedExtraInfo
dataclass
EXPERIMENTAL
Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.
Source code in zendriver/cdp/network.py
5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 | |
blocked_cookies: typing.List[BlockedSetCookieWithReason]
instance-attribute
cookie_partition_key: typing.Optional[CookiePartitionKey]
instance-attribute
cookie_partition_key_opaque: typing.Optional[bool]
instance-attribute
exempted_cookies: typing.Optional[typing.List[ExemptedSetCookieWithReason]]
instance-attribute
headers: Headers
instance-attribute
headers_text: typing.Optional[str]
instance-attribute
request_id: RequestId
instance-attribute
resource_ip_address_space: IPAddressSpace
instance-attribute
status_code: int
instance-attribute
__init__(request_id, blocked_cookies, headers, resource_ip_address_space, status_code, headers_text, cookie_partition_key, cookie_partition_key_opaque, exempted_cookies)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
SecurityDetails
dataclass
Security details about a request.
Source code in zendriver/cdp/network.py
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 | |
certificate_id: security.CertificateId
instance-attribute
certificate_transparency_compliance: CertificateTransparencyCompliance
instance-attribute
cipher: str
instance-attribute
encrypted_client_hello: bool
instance-attribute
issuer: str
instance-attribute
key_exchange: str
instance-attribute
key_exchange_group: typing.Optional[str] = None
class-attribute
instance-attribute
mac: typing.Optional[str] = None
class-attribute
instance-attribute
protocol: str
instance-attribute
san_list: typing.List[str]
instance-attribute
server_signature_algorithm: typing.Optional[int] = None
class-attribute
instance-attribute
signed_certificate_timestamp_list: typing.List[SignedCertificateTimestamp]
instance-attribute
subject_name: str
instance-attribute
valid_from: TimeSinceEpoch
instance-attribute
valid_to: TimeSinceEpoch
instance-attribute
__init__(protocol, key_exchange, cipher, certificate_id, subject_name, san_list, issuer, valid_from, valid_to, signed_certificate_timestamp_list, certificate_transparency_compliance, encrypted_client_hello, key_exchange_group=None, mac=None, server_signature_algorithm=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
SecurityIsolationStatus
dataclass
Source code in zendriver/cdp/network.py
coep: typing.Optional[CrossOriginEmbedderPolicyStatus] = None
class-attribute
instance-attribute
coop: typing.Optional[CrossOriginOpenerPolicyStatus] = None
class-attribute
instance-attribute
csp: typing.Optional[typing.List[ContentSecurityPolicyStatus]] = None
class-attribute
instance-attribute
__init__(coop=None, coep=None, csp=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
ServiceWorkerResponseSource
Bases: Enum
Source of serviceworker response.
Source code in zendriver/cdp/network.py
CACHE_STORAGE = 'cache-storage'
class-attribute
instance-attribute
FALLBACK_CODE = 'fallback-code'
class-attribute
instance-attribute
HTTP_CACHE = 'http-cache'
class-attribute
instance-attribute
NETWORK = 'network'
class-attribute
instance-attribute
from_json(json)
classmethod
ServiceWorkerRouterInfo
dataclass
Source code in zendriver/cdp/network.py
actual_source_type: typing.Optional[ServiceWorkerRouterSource] = None
class-attribute
instance-attribute
matched_source_type: typing.Optional[ServiceWorkerRouterSource] = None
class-attribute
instance-attribute
rule_id_matched: typing.Optional[int] = None
class-attribute
instance-attribute
__init__(rule_id_matched=None, matched_source_type=None, actual_source_type=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
ServiceWorkerRouterSource
Bases: Enum
Source of service worker router.
Source code in zendriver/cdp/network.py
CACHE = 'cache'
class-attribute
instance-attribute
FETCH_EVENT = 'fetch-event'
class-attribute
instance-attribute
NETWORK = 'network'
class-attribute
instance-attribute
RACE_NETWORK_AND_CACHE = 'race-network-and-cache'
class-attribute
instance-attribute
RACE_NETWORK_AND_FETCH_HANDLER = 'race-network-and-fetch-handler'
class-attribute
instance-attribute
from_json(json)
classmethod
SetCookieBlockedReason
Bases: Enum
Types of reasons why a cookie may not be stored from a response.
Source code in zendriver/cdp/network.py
DISALLOWED_CHARACTER = 'DisallowedCharacter'
class-attribute
instance-attribute
INVALID_DOMAIN = 'InvalidDomain'
class-attribute
instance-attribute
INVALID_PREFIX = 'InvalidPrefix'
class-attribute
instance-attribute
NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE = 'NameValuePairExceedsMaxSize'
class-attribute
instance-attribute
NO_COOKIE_CONTENT = 'NoCookieContent'
class-attribute
instance-attribute
OVERWRITE_SECURE = 'OverwriteSecure'
class-attribute
instance-attribute
SAME_SITE_LAX = 'SameSiteLax'
class-attribute
instance-attribute
SAME_SITE_NONE_INSECURE = 'SameSiteNoneInsecure'
class-attribute
instance-attribute
SAME_SITE_STRICT = 'SameSiteStrict'
class-attribute
instance-attribute
SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SameSiteUnspecifiedTreatedAsLax'
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_LAX = 'SchemefulSameSiteLax'
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_STRICT = 'SchemefulSameSiteStrict'
class-attribute
instance-attribute
SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SchemefulSameSiteUnspecifiedTreatedAsLax'
class-attribute
instance-attribute
SCHEME_NOT_SUPPORTED = 'SchemeNotSupported'
class-attribute
instance-attribute
SECURE_ONLY = 'SecureOnly'
class-attribute
instance-attribute
SYNTAX_ERROR = 'SyntaxError'
class-attribute
instance-attribute
THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET = 'ThirdPartyBlockedInFirstPartySet'
class-attribute
instance-attribute
THIRD_PARTY_PHASEOUT = 'ThirdPartyPhaseout'
class-attribute
instance-attribute
UNKNOWN_ERROR = 'UnknownError'
class-attribute
instance-attribute
USER_PREFERENCES = 'UserPreferences'
class-attribute
instance-attribute
from_json(json)
classmethod
SignedCertificateTimestamp
dataclass
Details of a signed certificate timestamp (SCT).
Source code in zendriver/cdp/network.py
hash_algorithm: str
instance-attribute
log_description: str
instance-attribute
log_id: str
instance-attribute
origin: str
instance-attribute
signature_algorithm: str
instance-attribute
signature_data: str
instance-attribute
status: str
instance-attribute
timestamp: float
instance-attribute
__init__(status, origin, log_description, log_id, timestamp, hash_algorithm, signature_algorithm, signature_data)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
SignedExchangeError
dataclass
Information about a signed exchange response.
Source code in zendriver/cdp/network.py
error_field: typing.Optional[SignedExchangeErrorField] = None
class-attribute
instance-attribute
message: str
instance-attribute
signature_index: typing.Optional[int] = None
class-attribute
instance-attribute
__init__(message, signature_index=None, error_field=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
SignedExchangeErrorField
Bases: Enum
Field type for a signed exchange related error.
Source code in zendriver/cdp/network.py
SIGNATURE_CERT_SHA256 = 'signatureCertSha256'
class-attribute
instance-attribute
SIGNATURE_CERT_URL = 'signatureCertUrl'
class-attribute
instance-attribute
SIGNATURE_INTEGRITY = 'signatureIntegrity'
class-attribute
instance-attribute
SIGNATURE_SIG = 'signatureSig'
class-attribute
instance-attribute
SIGNATURE_TIMESTAMPS = 'signatureTimestamps'
class-attribute
instance-attribute
SIGNATURE_VALIDITY_URL = 'signatureValidityUrl'
class-attribute
instance-attribute
from_json(json)
classmethod
SignedExchangeHeader
dataclass
Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
Source code in zendriver/cdp/network.py
header_integrity: str
instance-attribute
request_url: str
instance-attribute
response_code: int
instance-attribute
response_headers: Headers
instance-attribute
signatures: typing.List[SignedExchangeSignature]
instance-attribute
__init__(request_url, response_code, response_headers, signatures, header_integrity)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
SignedExchangeInfo
dataclass
Information about a signed exchange response.
Source code in zendriver/cdp/network.py
errors: typing.Optional[typing.List[SignedExchangeError]] = None
class-attribute
instance-attribute
has_extra_info: bool
instance-attribute
header: typing.Optional[SignedExchangeHeader] = None
class-attribute
instance-attribute
outer_response: Response
instance-attribute
security_details: typing.Optional[SecurityDetails] = None
class-attribute
instance-attribute
__init__(outer_response, has_extra_info, header=None, security_details=None, errors=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
SignedExchangeReceived
dataclass
EXPERIMENTAL
Fired when a signed exchange was received over the network
Source code in zendriver/cdp/network.py
info: SignedExchangeInfo
instance-attribute
request_id: RequestId
instance-attribute
__init__(request_id, info)
SignedExchangeSignature
dataclass
Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
Source code in zendriver/cdp/network.py
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 | |
cert_sha256: typing.Optional[str] = None
class-attribute
instance-attribute
cert_url: typing.Optional[str] = None
class-attribute
instance-attribute
certificates: typing.Optional[typing.List[str]] = None
class-attribute
instance-attribute
date: int
instance-attribute
expires: int
instance-attribute
integrity: str
instance-attribute
label: str
instance-attribute
signature: str
instance-attribute
validity_url: str
instance-attribute
__init__(label, signature, integrity, validity_url, date, expires, cert_url=None, cert_sha256=None, certificates=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
TerminationEventDetails
dataclass
Session event details specific to termination.
Source code in zendriver/cdp/network.py
deletion_reason: str
instance-attribute
__init__(deletion_reason)
from_json(json)
classmethod
TimeSinceEpoch
Bases: float
UTC time in seconds, counted from January 1, 1970.
Source code in zendriver/cdp/network.py
__repr__()
from_json(json)
classmethod
TrustTokenOperationDone
dataclass
EXPERIMENTAL
Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
Source code in zendriver/cdp/network.py
issued_token_count: typing.Optional[int]
instance-attribute
issuer_origin: typing.Optional[str]
instance-attribute
request_id: RequestId
instance-attribute
status: str
instance-attribute
top_level_origin: typing.Optional[str]
instance-attribute
type_: TrustTokenOperationType
instance-attribute
__init__(status, type_, request_id, top_level_origin, issuer_origin, issued_token_count)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
TrustTokenOperationType
Bases: Enum
Source code in zendriver/cdp/network.py
ISSUANCE = 'Issuance'
class-attribute
instance-attribute
REDEMPTION = 'Redemption'
class-attribute
instance-attribute
SIGNING = 'Signing'
class-attribute
instance-attribute
from_json(json)
classmethod
TrustTokenParams
dataclass
Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
Source code in zendriver/cdp/network.py
issuers: typing.Optional[typing.List[str]] = None
class-attribute
instance-attribute
operation: TrustTokenOperationType
instance-attribute
refresh_policy: str
instance-attribute
__init__(operation, refresh_policy, issuers=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
WebSocketClosed
dataclass
Fired when WebSocket is closed.
Source code in zendriver/cdp/network.py
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp)
WebSocketCreated
dataclass
Fired upon WebSocket creation.
Source code in zendriver/cdp/network.py
initiator: typing.Optional[Initiator]
instance-attribute
request_id: RequestId
instance-attribute
url: str
instance-attribute
__init__(request_id, url, initiator)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
WebSocketFrame
dataclass
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
Source code in zendriver/cdp/network.py
mask: bool
instance-attribute
opcode: float
instance-attribute
payload_data: str
instance-attribute
__init__(opcode, mask, payload_data)
from_json(json)
classmethod
WebSocketFrameError
dataclass
Fired when WebSocket message error occurs.
Source code in zendriver/cdp/network.py
error_message: str
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, error_message)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
WebSocketFrameReceived
dataclass
Fired when WebSocket message is received.
Source code in zendriver/cdp/network.py
request_id: RequestId
instance-attribute
response: WebSocketFrame
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, response)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
WebSocketFrameSent
dataclass
Fired when WebSocket message is sent.
Source code in zendriver/cdp/network.py
request_id: RequestId
instance-attribute
response: WebSocketFrame
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, response)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
WebSocketHandshakeResponseReceived
dataclass
Fired when WebSocket handshake response becomes available.
Source code in zendriver/cdp/network.py
request_id: RequestId
instance-attribute
response: WebSocketResponse
instance-attribute
timestamp: MonotonicTime
instance-attribute
__init__(request_id, timestamp, response)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
WebSocketRequest
dataclass
WebSocket request data.
Source code in zendriver/cdp/network.py
headers: Headers
instance-attribute
__init__(headers)
from_json(json)
classmethod
WebSocketResponse
dataclass
WebSocket response data.
Source code in zendriver/cdp/network.py
headers: Headers
instance-attribute
headers_text: typing.Optional[str] = None
class-attribute
instance-attribute
request_headers: typing.Optional[Headers] = None
class-attribute
instance-attribute
request_headers_text: typing.Optional[str] = None
class-attribute
instance-attribute
status: int
instance-attribute
status_text: str
instance-attribute
__init__(status, status_text, headers, headers_text=None, request_headers=None, request_headers_text=None)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
to_json()
Source code in zendriver/cdp/network.py
WebSocketWillSendHandshakeRequest
dataclass
Fired when WebSocket is about to initiate handshake.
Source code in zendriver/cdp/network.py
request: WebSocketRequest
instance-attribute
request_id: RequestId
instance-attribute
timestamp: MonotonicTime
instance-attribute
wall_time: TimeSinceEpoch
instance-attribute
__init__(request_id, timestamp, wall_time, request)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
WebTransportClosed
dataclass
Fired when WebTransport is disposed.
Source code in zendriver/cdp/network.py
timestamp: MonotonicTime
instance-attribute
transport_id: RequestId
instance-attribute
__init__(transport_id, timestamp)
WebTransportConnectionEstablished
dataclass
Fired when WebTransport handshake is finished.
Source code in zendriver/cdp/network.py
timestamp: MonotonicTime
instance-attribute
transport_id: RequestId
instance-attribute
__init__(transport_id, timestamp)
from_json(json)
classmethod
WebTransportCreated
dataclass
Fired upon WebTransport creation.
Source code in zendriver/cdp/network.py
initiator: typing.Optional[Initiator]
instance-attribute
timestamp: MonotonicTime
instance-attribute
transport_id: RequestId
instance-attribute
url: str
instance-attribute
__init__(transport_id, url, timestamp, initiator)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
can_clear_browser_cache()
Tells whether clearing browser cache is supported.
.. deprecated:: 1.3
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
True if browser cache can be cleared. |
Source code in zendriver/cdp/network.py
can_clear_browser_cookies()
Tells whether clearing browser cookies is supported.
.. deprecated:: 1.3
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
True if browser cookies can be cleared. |
Source code in zendriver/cdp/network.py
can_emulate_network_conditions()
Tells whether emulation of network conditions is supported.
.. deprecated:: 1.3
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
True if emulation of network conditions is supported. |
Source code in zendriver/cdp/network.py
clear_accepted_encodings_override()
Clears accepted encodings set by setAcceptedEncodings
EXPERIMENTAL
Source code in zendriver/cdp/network.py
clear_browser_cache()
clear_browser_cookies()
Clears browser cookies.
configure_durable_messages(max_total_buffer_size=None, max_resource_buffer_size=None)
Configures storing response bodies outside of renderer, so that these survive a cross-process navigation. If maxTotalBufferSize is not set, durable messages are disabled.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_total_buffer_size
|
Optional[int]
|
(Optional) Buffer size in bytes to use when preserving network payloads (XHRs, etc). |
None
|
max_resource_buffer_size
|
Optional[int]
|
(Optional) Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc). |
None
|
Source code in zendriver/cdp/network.py
continue_intercepted_request(interception_id, error_reason=None, raw_response=None, url=None, method=None, post_data=None, headers=None, auth_challenge_response=None)
Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
.. deprecated:: 1.3
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interception_id
|
InterceptionId
|
|
required |
error_reason
|
Optional[ErrorReason]
|
(Optional) If set this causes the request to fail with the given reason. Passing |
None
|
raw_response
|
Optional[str]
|
(Optional) If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON) |
None
|
url
|
Optional[str]
|
(Optional) If set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge. |
None
|
method
|
Optional[str]
|
(Optional) If set this allows the request method to be overridden. Must not be set in response to an authChallenge. |
None
|
post_data
|
Optional[str]
|
(Optional) If set this allows postData to be set. Must not be set in response to an authChallenge. |
None
|
headers
|
Optional[Headers]
|
(Optional) If set this allows the request headers to be changed. Must not be set in response to an authChallenge. |
None
|
auth_challenge_response
|
Optional[AuthChallengeResponse]
|
(Optional) Response to a requestIntercepted with an authChallenge. Must not be set otherwise. |
None
|
Source code in zendriver/cdp/network.py
delete_cookies(name, url=None, domain=None, path=None, partition_key=None)
Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the cookies to remove. |
required |
url
|
Optional[str]
|
(Optional) If specified, deletes all the cookies with the given name where domain and path match provided URL. |
None
|
domain
|
Optional[str]
|
(Optional) If specified, deletes only cookies with the exact domain. |
None
|
path
|
Optional[str]
|
(Optional) If specified, deletes only cookies with the exact path. |
None
|
partition_key
|
Optional[CookiePartitionKey]
|
(EXPERIMENTAL) (Optional) If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute. |
None
|
Source code in zendriver/cdp/network.py
disable()
Disables network tracking, prevents network events from being sent to the client.
Source code in zendriver/cdp/network.py
emulate_network_conditions(offline, latency, download_throughput, upload_throughput, connection_type=None, packet_loss=None, packet_queue_length=None, packet_reordering=None)
Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.
.. deprecated:: 1.3
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
offline
|
bool
|
True to emulate internet disconnection. |
required |
latency
|
float
|
Minimum latency from request sent to response headers received (ms). |
required |
download_throughput
|
float
|
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. |
required |
upload_throughput
|
float
|
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. |
required |
connection_type
|
Optional[ConnectionType]
|
(Optional) Connection type if known. |
None
|
packet_loss
|
Optional[float]
|
(EXPERIMENTAL) (Optional) WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets. |
None
|
packet_queue_length
|
Optional[int]
|
(EXPERIMENTAL) (Optional) WebRTC packet queue length (packet). 0 removes any queue length limitations. |
None
|
packet_reordering
|
Optional[bool]
|
(EXPERIMENTAL) (Optional) WebRTC packetReordering feature. |
None
|
Source code in zendriver/cdp/network.py
emulate_network_conditions_by_rule(matched_network_conditions, offline=None, emulate_offline_service_worker=None)
Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated
Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to
explicitly modify navigator behavior.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
offline
|
Optional[bool]
|
(DEPRECATED) (Optional) True to emulate internet disconnection. Deprecated, use the offline property in matchedNetworkConditions or emulateOfflineServiceWorker instead. |
None
|
emulate_offline_service_worker
|
Optional[bool]
|
(Optional) True to emulate offline service worker. |
None
|
matched_network_conditions
|
List[NetworkConditions]
|
Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[str]]
|
An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for requests affected by a rule. |
Source code in zendriver/cdp/network.py
enable(max_total_buffer_size=None, max_resource_buffer_size=None, max_post_data_size=None, report_direct_socket_traffic=None, enable_durable_messages=None)
Enables network tracking, network events will now be delivered to the client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_total_buffer_size
|
Optional[int]
|
(EXPERIMENTAL) (Optional) Buffer size in bytes to use when preserving network payloads (XHRs, etc). This is the maximum number of bytes that will be collected by this DevTools session. |
None
|
max_resource_buffer_size
|
Optional[int]
|
(EXPERIMENTAL) (Optional) Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc). |
None
|
max_post_data_size
|
Optional[int]
|
(Optional) Longest post body size (in bytes) that would be included in requestWillBeSent notification |
None
|
report_direct_socket_traffic
|
Optional[bool]
|
(EXPERIMENTAL) (Optional) Whether DirectSocket chunk send/receive events should be reported. |
None
|
enable_durable_messages
|
Optional[bool]
|
(EXPERIMENTAL) (Optional) Enable storing response bodies outside of renderer, so that these survive a cross-process navigation. Requires maxTotalBufferSize to be set. Currently defaults to false. This field is being deprecated in favor of the dedicated configureDurableMessages command, due to the possibility of deadlocks when awaiting Network.enable before issuing Runtime.runIfWaitingForDebugger. |
None
|
Source code in zendriver/cdp/network.py
enable_device_bound_sessions(enable)
Sets up tracking device bound sessions and fetching of initial set of sessions.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
Whether to enable or disable events. |
required |
Source code in zendriver/cdp/network.py
enable_reporting_api(enable)
Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
Whether to enable or disable events for the Reporting API |
required |
Source code in zendriver/cdp/network.py
fetch_schemeful_site(origin)
Fetches the schemeful site for a specific origin.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
The URL origin. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, str]
|
The corresponding schemeful site. |
Source code in zendriver/cdp/network.py
get_all_cookies()
Returns all browser cookies. Depending on the backend support, will return detailed cookie
information in the cookies field.
Deprecated. Use Storage.getCookies instead.
.. deprecated:: 1.3
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[Cookie]]
|
Array of cookie objects. |
Source code in zendriver/cdp/network.py
get_certificate(origin)
Returns the DER-encoded certificate.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
str
|
Origin to get certificate for. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[str]]
|
|
Source code in zendriver/cdp/network.py
get_cookies(urls=None)
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the cookies field.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
urls
|
Optional[List[str]]
|
(Optional) The list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing the URLs of the page and all of its subframes. |
None
|
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[Cookie]]
|
Array of cookie objects. |
Source code in zendriver/cdp/network.py
get_request_post_data(request_id)
Returns post data sent with the request. Returns an error when no data was sent with the request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request_id
|
RequestId
|
Identifier of the network request to get content for. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[str, bool]]
|
A tuple with the following items: 0. postData - Request body string, omitting files from multipart requests 1. base64Encoded - True, if content was sent as base64. |
Source code in zendriver/cdp/network.py
get_response_body(request_id)
Returns content served for the given request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request_id
|
RequestId
|
Identifier of the network request to get content for. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[str, bool]]
|
A tuple with the following items: 0. body - Response body. 1. base64Encoded - True, if content was sent as base64. |
Source code in zendriver/cdp/network.py
get_response_body_for_interception(interception_id)
Returns content served for the given currently intercepted request.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interception_id
|
InterceptionId
|
Identifier for the intercepted request to get body for. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[str, bool]]
|
A tuple with the following items: 0. body - Response body. 1. base64Encoded - True, if content was sent as base64. |
Source code in zendriver/cdp/network.py
get_security_isolation_status(frame_id=None)
Returns information about the COEP/COOP isolation status.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frame_id
|
Optional[FrameId]
|
(Optional) If no frameId is provided, the status of the target is provided. |
None
|
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, SecurityIsolationStatus]
|
|
Source code in zendriver/cdp/network.py
load_network_resource(url, options, frame_id=None)
Fetches the resource and returns the content.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frame_id
|
Optional[FrameId]
|
(Optional) Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets. |
None
|
url
|
str
|
URL of the resource to get content for. |
required |
options
|
LoadNetworkResourceOptions
|
Options for the request. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, LoadNetworkResourcePageResult]
|
|
Source code in zendriver/cdp/network.py
override_network_state(offline, latency, download_throughput, upload_throughput, connection_type=None)
Override the state of navigator.onLine and navigator.connection.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
offline
|
bool
|
True to emulate internet disconnection. |
required |
latency
|
float
|
Minimum latency from request sent to response headers received (ms). |
required |
download_throughput
|
float
|
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. |
required |
upload_throughput
|
float
|
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. |
required |
connection_type
|
Optional[ConnectionType]
|
(Optional) Connection type if known. |
None
|
Source code in zendriver/cdp/network.py
replay_xhr(request_id)
This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request_id
|
RequestId
|
Identifier of XHR to replay. |
required |
Source code in zendriver/cdp/network.py
search_in_response_body(request_id, query, case_sensitive=None, is_regex=None)
Searches for given string in response content.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request_id
|
RequestId
|
Identifier of the network response to search. |
required |
query
|
str
|
String to search for. |
required |
case_sensitive
|
Optional[bool]
|
(Optional) If true, search is case sensitive. |
None
|
is_regex
|
Optional[bool]
|
(Optional) If true, treats string parameter as regex. |
None
|
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[SearchMatch]]
|
List of search matches. |
Source code in zendriver/cdp/network.py
set_accepted_encodings(encodings)
Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
encodings
|
List[ContentEncoding]
|
List of accepted content encodings. |
required |
Source code in zendriver/cdp/network.py
set_attach_debug_stack(enabled)
Specifies whether to attach a page script stack id in requests
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enabled
|
bool
|
Whether to attach a page script stack for debugging purpose. |
required |
Source code in zendriver/cdp/network.py
set_blocked_ur_ls(url_patterns=None, urls=None)
Blocks URLs from loading.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url_patterns
|
Optional[List[BlockPattern]]
|
(Optional) Patterns to match in the order in which they are given. These patterns also take precedence over any wildcard patterns defined in |
None
|
urls
|
Optional[List[str]]
|
(DEPRECATED) (Optional) URL patterns to block. Wildcards ('*') are allowed. |
None
|
Source code in zendriver/cdp/network.py
set_bypass_service_worker(bypass)
Toggles ignoring of service worker for each request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bypass
|
bool
|
Bypass service worker and load from network. |
required |
Source code in zendriver/cdp/network.py
set_cache_disabled(cache_disabled)
Toggles ignoring cache for each request. If true, cache will not be used.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cache_disabled
|
bool
|
Cache disabled state. |
required |
Source code in zendriver/cdp/network.py
set_cookie(name, value, url=None, domain=None, path=None, secure=None, http_only=None, same_site=None, expires=None, priority=None, source_scheme=None, source_port=None, partition_key=None)
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Cookie name. |
required |
value
|
str
|
Cookie value. |
required |
url
|
Optional[str]
|
(Optional) The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie. |
None
|
domain
|
Optional[str]
|
(Optional) Cookie domain. |
None
|
path
|
Optional[str]
|
(Optional) Cookie path. |
None
|
secure
|
Optional[bool]
|
(Optional) True if cookie is secure. |
None
|
http_only
|
Optional[bool]
|
(Optional) True if cookie is http-only. |
None
|
same_site
|
Optional[CookieSameSite]
|
(Optional) Cookie SameSite type. |
None
|
expires
|
Optional[TimeSinceEpoch]
|
(Optional) Cookie expiration date, session cookie if not set |
None
|
priority
|
Optional[CookiePriority]
|
(EXPERIMENTAL) (Optional) Cookie Priority type. |
None
|
source_scheme
|
Optional[CookieSourceScheme]
|
(EXPERIMENTAL) (Optional) Cookie source scheme type. |
None
|
source_port
|
Optional[int]
|
(EXPERIMENTAL) (Optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future. |
None
|
partition_key
|
Optional[CookiePartitionKey]
|
(EXPERIMENTAL) (Optional) Cookie partition key. If not set, the cookie will be set as not partitioned. |
None
|
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
Always set to true. If an error occurs, the response indicates protocol error. |
Source code in zendriver/cdp/network.py
4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 | |
set_cookie_controls(enable_third_party_cookie_restriction)
Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable_third_party_cookie_restriction
|
bool
|
Whether 3pc restriction is enabled. |
required |
Source code in zendriver/cdp/network.py
set_cookies(cookies)
Sets given cookies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cookies
|
List[CookieParam]
|
Cookies to be set. |
required |
Source code in zendriver/cdp/network.py
set_extra_http_headers(headers)
Specifies whether to always send extra HTTP headers with the requests from this page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
headers
|
Headers
|
Map with extra HTTP headers. |
required |
Source code in zendriver/cdp/network.py
set_request_interception(patterns)
Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.
.. deprecated:: 1.3
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
patterns
|
List[RequestPattern]
|
Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call. |
required |
Source code in zendriver/cdp/network.py
set_user_agent_override(user_agent, accept_language=None, platform=None, user_agent_metadata=None)
Allows overriding user agent with the given string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
user_agent
|
str
|
User agent to use. |
required |
accept_language
|
Optional[str]
|
(Optional) Browser language to emulate. |
None
|
platform
|
Optional[str]
|
(Optional) The platform navigator.platform should return. |
None
|
user_agent_metadata
|
Optional[UserAgentMetadata]
|
(EXPERIMENTAL) (Optional) To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData |
None
|
Source code in zendriver/cdp/network.py
stream_resource_content(request_id)
Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request_id
|
RequestId
|
Identifier of the request to stream. |
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, str]
|
Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON) |
Source code in zendriver/cdp/network.py
take_response_body_for_interception_as_stream(interception_id)
Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.
EXPERIMENTAL
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interception_id
|
InterceptionId
|
|
required |
Returns:
| Type | Description |
|---|---|
Generator[T_JSON_DICT, T_JSON_DICT, StreamHandle]
|
|