Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
playwright.sync_api._generated.Response Class Reference
Inheritance diagram for playwright.sync_api._generated.Response:
Inheritance graph
[legend]
Collaboration diagram for playwright.sync_api._generated.Response:
Collaboration graph
[legend]

Public Member Functions

str url (self)
 
bool ok (self)
 
int status (self)
 
str status_text (self)
 
typing.Dict[str, str] headers (self)
 
bool from_service_worker (self)
 
"Request" request (self)
 
"Frame" frame (self)
 
typing.Dict[str, str] all_headers (self)
 
typing.List[NameValueheaders_array (self)
 
typing.Optional[str] header_value (self, str name)
 
typing.List[str] header_values (self, str name)
 
typing.Optional[RemoteAddrserver_addr (self)
 
typing.Optional[SecurityDetailssecurity_details (self)
 
None finished (self)
 
bytes body (self)
 
str text (self)
 
typing.Any json (self)
 
- Public Member Functions inherited from playwright._impl._sync_base.SyncBase
None __init__ (self, Any impl_obj)
 
str __str__ (self)
 
None on (self, Any event, Any f)
 
None once (self, Any event, Any f)
 
None remove_listener (self, Any event, Any f)
 
- Public Member Functions inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
str __repr__ (self)
 

Additional Inherited Members

- Protected Member Functions inherited from playwright._impl._sync_base.SyncBase
Any _sync (self, Union[Coroutine[Any, Any, Any], Generator[Any, Any, Any]] coro)
 
Callable[..., None] _wrap_handler (self, Union[Callable[..., Any], Any] handler)
 
- Protected Attributes inherited from playwright._impl._sync_base.SyncBase
 _dispatcher_fiber
 
 _loop
 
- Protected Attributes inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
 _impl_obj
 

Member Function Documentation

◆ all_headers()

typing.Dict[str, str] playwright.sync_api._generated.Response.all_headers (   self)
Response.all_headers

An object with all the response HTTP headers associated with this response.

Returns
-------
Dict[str, str]

◆ body()

bytes playwright.sync_api._generated.Response.body (   self)
Response.body

Returns the buffer with response body.

Returns
-------
bytes

◆ finished()

None playwright.sync_api._generated.Response.finished (   self)
Response.finished

Waits for this response to finish, returns always `null`.

◆ frame()

"Frame" playwright.sync_api._generated.Response.frame (   self)
Response.frame

Returns the `Frame` that initiated this response.

Returns
-------
Frame

◆ from_service_worker()

bool playwright.sync_api._generated.Response.from_service_worker (   self)
Response.from_service_worker

Indicates whether this Response was fulfilled by a Service Worker's Fetch Handler (i.e. via
[FetchEvent.respondWith](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith)).

Returns
-------
bool

◆ header_value()

typing.Optional[str] playwright.sync_api._generated.Response.header_value (   self,
str  name 
)
Response.header_value

Returns the value of the header matching the name. The name is case-insensitive. If multiple headers have the same
name (except `set-cookie`), they are returned as a list separated by `, `. For `set-cookie`, the `\\n` separator is
used. If no headers are found, `null` is returned.

Parameters
----------
name : str
    Name of the header.

Returns
-------
Union[str, None]

◆ header_values()

typing.List[str] playwright.sync_api._generated.Response.header_values (   self,
str  name 
)
Response.header_values

Returns all values of the headers matching the name, for example `set-cookie`. The name is case-insensitive.

Parameters
----------
name : str
    Name of the header.

Returns
-------
List[str]

◆ headers()

typing.Dict[str, str] playwright.sync_api._generated.Response.headers (   self)
Response.headers

An object with the response HTTP headers. The header names are lower-cased. Note that this method does not return
security-related headers, including cookie-related ones. You can use `response.all_headers()` for complete
list of headers that include `cookie` information.

Returns
-------
Dict[str, str]

◆ headers_array()

typing.List[NameValue] playwright.sync_api._generated.Response.headers_array (   self)
Response.headers_array

An array with all the request HTTP headers associated with this response. Unlike `response.all_headers()`,
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.Response.json (   self)
Response.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.Response.ok (   self)
Response.ok

Contains a boolean stating whether the response was successful (status in the range 200-299) or not.

Returns
-------
bool

◆ request()

"Request" playwright.sync_api._generated.Response.request (   self)
Response.request

Returns the matching `Request` object.

Returns
-------
Request

◆ security_details()

typing.Optional[SecurityDetails] playwright.sync_api._generated.Response.security_details (   self)
Response.security_details

Returns SSL and other security information.

Returns
-------
Union[{issuer: Union[str, None], protocol: Union[str, None], subjectName: Union[str, None], validFrom: Union[float, None], validTo: Union[float, None]}, None]

◆ server_addr()

typing.Optional[RemoteAddr] playwright.sync_api._generated.Response.server_addr (   self)
Response.server_addr

Returns the IP address and port of the server.

Returns
-------
Union[{ipAddress: str, port: int}, None]

◆ status()

int playwright.sync_api._generated.Response.status (   self)
Response.status

Contains the status code of the response (e.g., 200 for a success).

Returns
-------
int

◆ status_text()

str playwright.sync_api._generated.Response.status_text (   self)
Response.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.Response.text (   self)
Response.text

Returns the text representation of response body.

Returns
-------
str

◆ url()

str playwright.sync_api._generated.Response.url (   self)
Response.url

Contains the URL of the response.

Returns
-------
str

The documentation for this class was generated from the following file: