Http Dustman

Jan Ferko’s python client to httpbin.org, open sourced under the MIT license

Introduction

Here you should introduce what your library does.

reStructuredText is powerful and extensible markup.

Important

Make sure to use directives such as:

  • .. important::
  • .. note::

See also

You can reference external libraries through intersphinx. For example, requests.post() or Session.

Warning

Some directives are available only on sphinx, such as .. deprecated::

Deprecated since version 0.0.1: This is useful to document breaking changes in the API.

API Reference

Http Dustman

Jan Ferko’s python client to httpbin.org, open sourced under the MIT license

class dustman.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

Indices and tables