Skip to content

Add examples/simple-http.py #32

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 1 commit into from
Feb 21, 2017
Merged

Add examples/simple-http.py #32

merged 1 commit into from
Feb 21, 2017

Conversation

msabramo
Copy link
Owner

Sort of like a very simple HTTPie

e.g.:

$ examples/simple-http.py http+unix://%2Fvar%2Frun%2Fdocker.sock/version
{"Version":"1.12.3","ApiVersion":"1.24","GitCommit":"6b644ec","GoVersion":"go1.6.2","Os":"linux","Arch":"amd64","KernelVersion":"4.4.0-63-generic","BuildTime":"Mon, 19 Dec 2016 09:20:48 +1300"}

Sort of like a very simple HTTPie

e.g.:

```
$ examples/simple-http.py http+unix://%2Fvar%2Frun%2Fdocker.sock/version
{"Version":"1.12.3","ApiVersion":"1.24","GitCommit":"6b644ec","GoVersion":"go1.6.2","Os":"linux","Arch":"amd64","KernelVersion":"4.4.0-63-generic","BuildTime":"Mon, 19 Dec 2016 09:20:48 +1300"}
```
@msabramo msabramo merged commit 3b615e2 into master Feb 21, 2017
@msabramo msabramo deleted the examples-simple-http branch February 21, 2017 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant