lib/savon/request.rb in savon-0.6.3 vs lib/savon/request.rb in savon-0.6.4
- old
+ new
@@ -43,9 +43,14 @@
end
# Returns the endpoint URI.
attr_reader :endpoint
+ # Sets the read timeout for HTTP requests.
+ def read_timeout=(sec)
+ http.read_timeout = sec
+ end
+
# Retrieves WSDL document and returns the Net::HTTPResponse.
def wsdl
log "Retrieving WSDL from: #{@endpoint}"
http.get @endpoint.to_s
end