|
|
Any | _sync (self, Union[Coroutine[Any, Any, Any], Generator[Any, Any, Any]] coro) |
| |
|
Callable[..., None] | _wrap_handler (self, Union[Callable[..., Any], Any] handler) |
| |
|
| _dispatcher_fiber |
| |
|
| _loop |
| |
|
| _impl_obj |
| |
◆ body()
| bytes playwright.sync_api._generated.APIResponse.body |
( |
|
self | ) |
|
APIResponse.body
Returns the buffer with response body.
Returns
-------
bytes
◆ dispose()
| None playwright.sync_api._generated.APIResponse.dispose |
( |
|
self | ) |
|
APIResponse.dispose
Disposes the body of this response. If not called then the body will stay in memory until the context closes.
◆ headers()
| typing.Dict[str, str] playwright.sync_api._generated.APIResponse.headers |
( |
|
self | ) |
|
APIResponse.headers
An object with all the response HTTP headers associated with this response.
Returns
-------
Dict[str, str]
◆ headers_array()
| typing.List[NameValue] playwright.sync_api._generated.APIResponse.headers_array |
( |
|
self | ) |
|
APIResponse.headers_array
An array with all the response HTTP headers associated with this response. Header names are not lower-cased.
Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
Returns
-------
List[{name: str, value: str}]
◆ json()
| typing.Any playwright.sync_api._generated.APIResponse.json |
( |
|
self | ) |
|
APIResponse.json
Returns the JSON representation of response body.
This method will throw if the response body is not parsable via `JSON.parse`.
Returns
-------
Any
◆ ok()
| bool playwright.sync_api._generated.APIResponse.ok |
( |
|
self | ) |
|
APIResponse.ok
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
Returns
-------
bool
◆ status()
| int playwright.sync_api._generated.APIResponse.status |
( |
|
self | ) |
|
APIResponse.status
Contains the status code of the response (e.g., 200 for a success).
Returns
-------
int
◆ status_text()
| str playwright.sync_api._generated.APIResponse.status_text |
( |
|
self | ) |
|
APIResponse.status_text
Contains the status text of the response (e.g. usually an \"OK\" for a success).
Returns
-------
str
◆ text()
| str playwright.sync_api._generated.APIResponse.text |
( |
|
self | ) |
|
APIResponse.text
Returns the text representation of response body.
Returns
-------
str
◆ url()
| str playwright.sync_api._generated.APIResponse.url |
( |
|
self | ) |
|
APIResponse.url
Contains the URL of the response.
Returns
-------
str
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/playwright/sync_api/_generated.py