Home | Trees | Indices | Help |
---|
|
object --+ | HttpRequestor
Note: This class is deprecated. New projects should use requests library instead
Helper class for sending requests of HTTP with GET and POST
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
api_url =
domain url to use when sending requests |
|||
api_method =
api method to use when sending requests |
|||
api_params =
parameters to send to the method when sending requests |
|||
api_header =
Authorization to put into header when sending requests |
|||
api_post_payload =
Payload to be delivered when sending a POST request |
|||
logger = None logger to send loggin information to. |
|||
api_path_params =
|
|||
formatted_params =
|
|
|||
Inherited from |
|
Constructor for class
|
Constucts a request with the parameters formated in path parameter format. EX: http://myserver.com/api/method/pathParam1/pathParam2
|
Constucts a request with the parameters formated in query parameter format. EX: http://myserver.com/api/method?queryParam=paramValue
|
Sends a GET HTTP request. Make sure you have set the classe's api_params,api_url and api_method first Args :null Returns : (file-like object) the HTTP response Raises :null
|
Sends a POST HTTP request. Make sure you have set the classe's api_params,api_url, api_header and api_method first Returns : (file-like object) the HTTP response
|
Creates the authentication for accessing HTTP
|
|
loggerlogger to send loggin information to. Logger comes from pytest test definitions
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 26 11:35:12 2014 | http://epydoc.sourceforge.net |