Browse Source

small readme fix

http2
Vsevolod Strukchinsky 9 years ago
committed by Vsevolod Strukchinsky
parent
commit
0737217650
  1. 8
      readme.md

8
readme.md

@ -233,8 +233,6 @@ Requests can also be sent via [unix domain sockets](http://serverfault.com/quest
- `SOCKET` - absolute path to a unix domain socket, e.g. `/var/run/docker.sock`
- `PATH` - request path, e.g. `/v2/keys`
Example:
```js
got('http://unix:/var/run/docker.sock:/containers/json');
@ -242,12 +240,6 @@ got('http://unix:/var/run/docker.sock:/containers/json');
got('unix:/var/run/docker.sock:/containers/json');
```
Use-cases:
- [Docker API](https://docs.docker.com/articles/basics/#bind-docker-to-another-host-port-or-a-unix-socket) (/var/run/docker.sock)
- [fleet API](https://coreos.com/fleet/docs/latest/deployment-and-configuration.html#api) (/var/run/fleet.sock)
## Tip
It's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo.

Loading…
Cancel
Save