cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
cFSPlib.python_api_client.swagger_client.rest.RESTResponse Class Reference
Inheritance diagram for cFSPlib.python_api_client.swagger_client.rest.RESTResponse:
[legend]
Collaboration diagram for cFSPlib.python_api_client.swagger_client.rest.RESTResponse:
[legend]

Public Member Functions

def __init__ (self, resp)
 
def getheaders (self)
 
def getheader (self, name, default=None)
 

Public Attributes

 urllib3_response
 
 status
 
 reason
 
 data
 

Detailed Description

Definition at line 35 of file rest.py.

Constructor & Destructor Documentation

◆ __init__()

def cFSPlib.python_api_client.swagger_client.rest.RESTResponse.__init__ (   self,
  resp 
)

Definition at line 37 of file rest.py.

37  def __init__(self, resp):
38  self.urllib3_response = resp
39  self.status = resp.status
40  self.reason = resp.reason
41  self.data = resp.data
42 

Member Function Documentation

◆ getheader()

def cFSPlib.python_api_client.swagger_client.rest.RESTResponse.getheader (   self,
  name,
  default = None 
)
Returns a given response header.

Definition at line 47 of file rest.py.

47  def getheader(self, name, default=None):
48  """Returns a given response header."""
49  return self.urllib3_response.getheader(name, default)
50 
51 

◆ getheaders()

def cFSPlib.python_api_client.swagger_client.rest.RESTResponse.getheaders (   self)
Returns a dictionary of the response headers.

Definition at line 43 of file rest.py.

43  def getheaders(self):
44  """Returns a dictionary of the response headers."""
45  return self.urllib3_response.getheaders()
46 

Member Data Documentation

◆ data

cFSPlib.python_api_client.swagger_client.rest.RESTResponse.data

Definition at line 41 of file rest.py.

◆ reason

cFSPlib.python_api_client.swagger_client.rest.RESTResponse.reason

Definition at line 40 of file rest.py.

◆ status

cFSPlib.python_api_client.swagger_client.rest.RESTResponse.status

Definition at line 39 of file rest.py.

◆ urllib3_response

cFSPlib.python_api_client.swagger_client.rest.RESTResponse.urllib3_response

Definition at line 38 of file rest.py.


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