client:set_timeout

March 26, 2020 Contributors

Name

client:set_timeout — Set the timeout for an HTTP client

Synopsis

require('msys.http.client')

client:set_timeout(number);

number: integer (optional)

Description

Set the timeout for an HTTP client. Setting the parameter to an integer value determines the length of the timeout. Passing no parameter clears the timeout setting.

See Also

msys.http.client.new, client:do_request, client:get_status, client:set_header, client:get_body, client:parse_headers client:get_headers