Skip to content

How do you pass an option to increase the request timeout? #38

Closed Answered by HoneyryderChuck
stephenhighemprise asked this question in Q&A

You must be logged in to vote

As per the docs, ":timeout" is top-level, and should not be wrapped under ":options" (in fact, there is no ":options".

http.post(my_url, json: payload, timeout: { read_timeout: 120 })

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@stephenhighemprise

Answer selected by stephenhighemprise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants