◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
data, |
|
|
|
address, |
|
|
|
request_id, |
|
|
|
duration, |
|
|
|
from_command, |
|
|
|
docs |
|
) |
| |
Represent a response from the server.
:Parameters:
- `data`: A network response message.
- `address`: (host, port) of the source server.
- `request_id`: The request id of this operation.
- `duration`: The duration of the operation.
- `from_command`: if the response is the result of a db command.
◆ address()
(host, port) of the source server.
◆ data()
Server response's raw BSON bytes.
◆ docs()
◆ duration()
The duration of the operation.
◆ from_command()
If the response is a result from a db command.
◆ request_id()
The request id of this operation.
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/pymongo/response.py