user3752900
user3752900

Reputation: 85

Net::HTTP.get_response timeout

Does Net::HTTP.get_response timeout after some number of seconds?
If it does not, is there a way for me to add a timeout?

Upvotes: 4

Views: 2210

Answers (1)

Pavel Frkal
Pavel Frkal

Reputation: 11

There doesn't seem to be any method nor attributes for either Net:HTTP.get_response and/or Net:HTTP.get_print as per latest documentation. There is a nice blog post that documents the basics for setting the timeouts though.

Upvotes: 1

Related Questions