OpenQuizz
Une application de gestion des contenus pédagogiques
Response Class Reference
Inheritance diagram for Response:
Collaboration diagram for Response:

Public Member Functions

def __init__ (self, data, address, request_id, duration, from_command, docs)
 
def data (self)
 
def address (self)
 
def request_id (self)
 
def duration (self)
 
def from_command (self)
 
def docs (self)
 

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ address()

def address (   self)
(host, port) of the source server.

◆ data()

def data (   self)
Server response's raw BSON bytes.

◆ docs()

def docs (   self)
The decoded document(s).

◆ duration()

def duration (   self)
The duration of the operation.

◆ from_command()

def from_command (   self)
If the response is a result from a db command.

◆ request_id()

def request_id (   self)
The request id of this operation.

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