Skip to content

Implement missing GET calls, binary requests, body type validation #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jan 18, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add binary request type
  • Loading branch information
David Moreau Simard committed Jan 18, 2014
commit 303d243b6b7f7d7d633f9df90f6e7846a695f0b0
9 changes: 8 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Instanciate CephWrapper::

Do your request and specify the reponse type you are expecting.

Either ``json``, ``xml`` or ``text`` (default) are available.
Either ``json``, ``xml``, ``text`` (default) or ``binary`` are available.

json::

Expand Down Expand Up @@ -90,6 +90,8 @@ xml::
</status>
</response>



text::

response, body = wrapper.get_fsid(body = 'text')
Expand All @@ -99,3 +101,8 @@ text::

Response: <Response [200]>, Body:
d5252e7d-75bc-4083-85ed-fe51fa83f62b

binary::

response, body = wrapper.mon_getmap(body = 'binary')
# < Do something binary with 'body' >