network
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
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
MIXED_CONTENT = 'mixed-content'
class-attribute
instance-attribute
ORIGIN = 'origin'
class-attribute
instance-attribute
OTHER = 'other'
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
ClientSecurityState
dataclass
Source code in zendriver/cdp/network.py
initiator_ip_address_space: IPAddressSpace
instance-attribute
initiator_is_secure_context: bool
instance-attribute
private_network_request_policy: PrivateNetworkRequestPolicy
instance-attribute
__init__(initiator_is_secure_context, initiator_ip_address_space, private_network_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
1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 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 |
|
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_party: bool
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, same_party, 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
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_PARTY_FROM_CROSS_PARTY_CONTEXT = 'SamePartyFromCrossPartyContext'
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
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
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 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 |
|
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_party: typing.Optional[bool] = 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, same_party=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_PRIVATE_NETWORK = 'InsecurePrivateNetwork'
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_PRIVATE_NETWORK_ACCESS = 'InvalidPrivateNetworkAccess'
class-attribute
instance-attribute
INVALID_RESPONSE = 'InvalidResponse'
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_ALLOW_PRIVATE_NETWORK = 'PreflightInvalidAllowPrivateNetwork'
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_MISSING_ALLOW_PRIVATE_NETWORK = 'PreflightMissingAllowPrivateNetwork'
class-attribute
instance-attribute
PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_ID = 'PreflightMissingPrivateNetworkAccessId'
class-attribute
instance-attribute
PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_NAME = 'PreflightMissingPrivateNetworkAccessName'
class-attribute
instance-attribute
PREFLIGHT_MULTIPLE_ALLOW_ORIGIN_VALUES = 'PreflightMultipleAllowOriginValues'
class-attribute
instance-attribute
PREFLIGHT_WILDCARD_ORIGIN_NOT_ALLOWED = 'PreflightWildcardOriginNotAllowed'
class-attribute
instance-attribute
PRIVATE_NETWORK_ACCESS_PERMISSION_DENIED = 'PrivateNetworkAccessPermissionDenied'
class-attribute
instance-attribute
PRIVATE_NETWORK_ACCESS_PERMISSION_UNAVAILABLE = 'PrivateNetworkAccessPermissionUnavailable'
class-attribute
instance-attribute
REDIRECT_CONTAINS_CREDENTIALS = 'RedirectContainsCredentials'
class-attribute
instance-attribute
UNEXPECTED_PRIVATE_NETWORK_ACCESS = 'UnexpectedPrivateNetworkAccess'
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
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
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
PRIVATE = 'Private'
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
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
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
PrivateNetworkRequestPolicy
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
PREFLIGHT_BLOCK = 'PreflightBlock'
class-attribute
instance-attribute
PREFLIGHT_WARN = 'PreflightWarn'
class-attribute
instance-attribute
WARN_FROM_INSECURE_TO_MORE_PRIVATE = 'WarnFromInsecureToMorePrivate'
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
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 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 |
|
has_post_data: typing.Optional[bool] = None
class-attribute
instance-attribute
headers: Headers
instance-attribute
initial_priority: ResourcePriority
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)
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
3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 |
|
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
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
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)
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
associated_cookies: typing.List[AssociatedCookie]
instance-attribute
client_security_state: typing.Optional[ClientSecurityState]
instance-attribute
connect_timing: ConnectTiming
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, client_security_state, site_has_cookie_in_other_partition)
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
259 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 |
|
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
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
982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 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 |
|
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
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 |
|
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
4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 |
|
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
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 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 |
|
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_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_PARTY_CONFLICTS_WITH_OTHER_ATTRIBUTES = 'SamePartyConflictsWithOtherAttributes'
class-attribute
instance-attribute
SAME_PARTY_FROM_CROSS_PARTY_CONTEXT = 'SamePartyFromCrossPartyContext'
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
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, 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
2007 2008 2009 2010 2011 2012 2013 2014 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 |
|
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
SubresourceWebBundleInnerResponseError
dataclass
EXPERIMENTAL
Fired when request for resources within a .wbn file failed.
Source code in zendriver/cdp/network.py
bundle_request_id: typing.Optional[RequestId]
instance-attribute
error_message: str
instance-attribute
inner_request_id: RequestId
instance-attribute
inner_request_url: str
instance-attribute
__init__(inner_request_id, inner_request_url, error_message, bundle_request_id)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
SubresourceWebBundleInnerResponseParsed
dataclass
EXPERIMENTAL
Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.
Source code in zendriver/cdp/network.py
bundle_request_id: typing.Optional[RequestId]
instance-attribute
inner_request_id: RequestId
instance-attribute
inner_request_url: str
instance-attribute
__init__(inner_request_id, inner_request_url, bundle_request_id)
from_json(json)
classmethod
Source code in zendriver/cdp/network.py
SubresourceWebBundleMetadataError
dataclass
EXPERIMENTAL
Fired once when parsing the .wbn file has failed.
Source code in zendriver/cdp/network.py
error_message: str
instance-attribute
request_id: RequestId
instance-attribute
__init__(request_id, error_message)
SubresourceWebBundleMetadataReceived
dataclass
EXPERIMENTAL
Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.
Source code in zendriver/cdp/network.py
request_id: RequestId
instance-attribute
urls: typing.List[str]
instance-attribute
__init__(request_id, urls)
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.
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.
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
enable(max_total_buffer_size=None, max_resource_buffer_size=None, max_post_data_size=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). |
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
|
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
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, str]
|
Request body string, omitting files from multipart requests |
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
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(urls)
Blocks URLs from loading.
EXPERIMENTAL
Parameters:
Name | Type | Description | Default |
---|---|---|---|
urls
|
List[str]
|
URL patterns to block. Wildcards ('*') are allowed. |
required |
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, same_party=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
|
same_party
|
Optional[bool]
|
(EXPERIMENTAL) (Optional) True if cookie is SameParty. |
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
3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 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 |
|
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]
|
|