RequestContext · Python
class declaration and members.
In this guide
Purpose and lifecycle
Definition and availability
Source snapshot: 1.0.0-alpha.3. Reachable result/callback type; not a top-level package export. Declared in source; this is not a runtime test result.
Signatures and source locations are generated from the SDK wrappers. Clean snapshots link to the recorded commit. Modified snapshots link to main, which may differ; file hashes identify the local inputs.
class RequestContextMembers
| Member | Kind | Return / value type | Source status |
|---|---|---|---|
| __init__ | method | Not annotated; see behavior notes | Present in source |
| url | property | Not annotated | Present in source |
| headers | property | Not annotated | Present in source |
__init__()
Internal value constructed by Page for before_fetch callbacks. Headers refer to the request map; assigning url does not change the actual fetch URL.
Returns / value: Not annotated; see behavior notes.
def __init__(self, url, headers)| Parameter | Type | Required / default | Meaning |
|---|---|---|---|
| url | Not annotated | Required | HTTP(S) source URL; verify the target is appropriate for your application. |
| headers | Not annotated | Required | Header names and values; avoid sharing credentials across unrelated sites. |
url
Instance field assigned by the constructor.
Returns / value: Not annotated.
url: Not annotatedheaders
Instance field assigned by the constructor.
Returns / value: Not annotated.
headers: Not annotatedErrors and operational limits
See the consuming API for validation and failure behavior. Types and enum declarations do not perform network requests by themselves.
Source availability, package publication and runtime validation are separate facts. These pages describe the source snapshot, not a claim that all platforms or every API path have passed production acceptance.