API Reference¶
Petr Olah HTTPBin Client
Petr Olah’s python client to httpbin.org, open sourced under the MIT license
-
class
formulka_httpbin.
HttpBinClient
(base_url='https://httpbin.org')[source]¶ Python client for the HTTPBin API.
Powered by
requests.Session
.-
make_full_url
(path)[source]¶ Builds a full url to be used internally in this client.
Parameters: path – a string with the path. Returns: a string Note
any trailing slashes at the left side of the path argument will be stripped.
-
post
(data=None)[source]¶ Calls the /post endpoint
Note
This function is here for demo purposes.
Parameters: data – data to be passed to requests.Session.post()
Returns: a dict with deserialized the JSON response
-