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

Public Member Functions

bool ok (self)
 
str url (self)
 
int status (self)
 
str status_text (self)
 
typing.Dict[str, str] headers (self)
 
typing.List[NameValueheaders_array (self)
 
bytes body (self)
 
str text (self)
 
typing.Any json (self)
 
None dispose (self)
 
- Public Member Functions inherited from playwright._impl._async_base.AsyncBase
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._async_base.AsyncBase
Callable[..., None] _wrap_handler (self, Union[Callable[..., Any], Any] handler)
 
- Protected Attributes inherited from playwright._impl._async_base.AsyncBase
 _loop
 
- Protected Attributes inherited from playwright._impl._impl_to_api_mapping.ImplWrapper
 _impl_obj
 

Member Function Documentation

◆ body()

bytes playwright.async_api._generated.APIResponse.body (   self)
APIResponse.body

Returns the buffer with response body.

Returns
-------
bytes

◆ dispose()

None playwright.async_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.async_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.async_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.async_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.async_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.async_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.async_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.async_api._generated.APIResponse.text (   self)
APIResponse.text

Returns the text representation of response body.

Returns
-------
str

◆ url()

str playwright.async_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: