2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Adding support for UNIX Sockets

This commit is contained in:
Starfox64
2017-09-04 17:06:19 +02:00
parent 07a7b7c84c
commit 85a48b2eaa
2 changed files with 11 additions and 2 deletions
Regular → Executable
+4
View File
@@ -312,6 +312,10 @@ These are the available config options for making requests. Only the `url` is re
// If set to 0, no redirects will be followed.
maxRedirects: 5, // default
// `socketPath` defines a UNIX Socket to be used in node.js.
// e.g. '/var/run/docker.sock' to send requests to the docker daemon.
socketPath: null, // default
// `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
// and https requests, respectively, in node.js. This allows options to be added like
// `keepAlive` that are not enabled by default.