Skip to content
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

Alternative URL scheme: http://sock.local #34

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Feb 21, 2017

  1. Alternative URL scheme

    e.g.: http+unix://unix.socket/var/run/docker.sock/version
    msabramo committed Feb 21, 2017
    Configuration menu
    Copy the full SHA
    a21bb9d View commit details
    Browse the repository at this point in the history
  2. Tests for alternative URL scheme

    e.g.: http+unix://unix.socket/var/run/docker.sock/version
    msabramo committed Feb 21, 2017
    Configuration menu
    Copy the full SHA
    86e7e20 View commit details
    Browse the repository at this point in the history
  3. Use env var: REQUESTS_UNIXSOCKET_URL_SCHEME

    so we can override scheme from `http+unix` to something else
    
    e.g.:
    
    ```
    $ REQUESTS_UNIXSOCKET_URL_SCHEME=http://sock.local examples/simple-http.py http://sock.local/var/run/docker.sock/version | jq .
    {
      "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 committed Feb 21, 2017
    Configuration menu
    Copy the full SHA
    3cdb2eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a216aec View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2017

  1. Configuration menu
    Copy the full SHA
    99553e0 View commit details
    Browse the repository at this point in the history