We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253d348 commit fa63525Copy full SHA for fa63525
lua/plenary/curl.lua
@@ -11,6 +11,7 @@ all curl methods accepts
11
raw = "any additonal curl args, it must be an array/list." (array)
12
dry_run = "whether to return the args to be ran through curl." (boolean)
13
output = "where to download something." (filepath)
14
+ timeout = "request timeout in mseconds" (number)
15
16
and returns table:
17
@@ -278,7 +279,8 @@ local request = function(specs)
278
279
if opts.callback then
280
return job:start()
281
else
- job:sync(10000)
282
+ local timeout = opts.timeout or 10000
283
+ job:sync(timeout)
284
return response
285
end
286
0 commit comments