RAPP Platform
v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
|
Performs http requests. More...
Public Member Functions | |
def | __init__ |
def | perform_request |
Execute the request and verify response. More... | |
Private Member Functions | |
def | _modify_response |
Return the proper response format. More... | |
Private Attributes | |
_accepted_status | |
The value of valid response status code. More... | |
_headers | |
The request additional headers. More... | |
_params | |
The request parameters. More... | |
_response_format | |
The required response format. More... | |
_server_timeout | |
Seconds to wait for any server response. More... | |
_url | |
The server url. More... | |
Performs http requests.
Definition at line 30 of file rapp_http_request_handler.py.
def src.rapp_http_request_handler.RappHttpRequestHandler.__init__ | ( | self | ) |
Definition at line 32 of file rapp_http_request_handler.py.
|
private |
Return the proper response format.
response | [request module response] The servers response |
form | [string] The required response format |
RappError Format transformation error
Definition at line 97 of file rapp_http_request_handler.py.
def src.rapp_http_request_handler.RappHttpRequestHandler.perform_request | ( | self, | |
url_add = None , |
|||
params_dict = None , |
|||
headers_dict = None |
|||
) |
Execute the request and verify response.
url_add | [string] The server url |
params_dict | [dict] The request's parameters |
headers_dict | [dict] The request's additional headers dictionary |
RappError Request error
Definition at line 60 of file rapp_http_request_handler.py.
|
private |
The value of valid response status code.
Definition at line 46 of file rapp_http_request_handler.py.
|
private |
The request additional headers.
Definition at line 38 of file rapp_http_request_handler.py.
|
private |
The request parameters.
Definition at line 36 of file rapp_http_request_handler.py.
|
private |
The required response format.
Definition at line 41 of file rapp_http_request_handler.py.
|
private |
Seconds to wait for any server response.
Definition at line 44 of file rapp_http_request_handler.py.
|
private |
The server url.
Definition at line 34 of file rapp_http_request_handler.py.