class documentation

class Webber(object):

View In Hierarchy

Helper class for making http reqests to a remote.

Method __init__ Return Webber Object.
Instance Variable session requests.Session object.
Instance Variable debug Debug Flag (be verbose).
Method set_cookie Set cookie.
Method get Simple http get request.
Method get_json simple get request with json input send as encoded params.
Method post_form_urlencoded_json Post with HEADER_URL_ENCODED header and dict passed as argument.
Method post_json Post with default JSON content encoding.
def __init__(self, debug=False):

Return Webber Object.

session =

requests.Session object.

debug =

Debug Flag (be verbose).

def set_cookie(self, key, value):

Set cookie.

def get(self, url):

Simple http get request.

def get_json(self, url, json_param):

simple get request with json input send as encoded params.

ParametersurlUndocumented (type: str)
json_paramUndocumented (type: dict)
def post_form_urlencoded_json(self, url, json_param):

Post with HEADER_URL_ENCODED header and dict passed as argument.

ParametersurlUndocumented (type: str)
json_paramUndocumented (type: dict)
def post_json(self, url, json_param):

Post with default JSON content encoding.

ParametersurlUndocumented (type: str)
json_paramUndocumented (type: dict)
API Documentation for v0tools, generated by pydoctor 21.2.2 at 1996-06-17 15:00:00.