Open nodesocket opened 8 years ago
I need timeout implemented, i.e. abort the XHR request after a given amount of time.
Should be as easy as setting XMLHttpRequest.timeout.
XMLHttpRequest.timeout
you can set the timeout in the option, and reqwest is supported.
but you cann't find in the doc
Reqwest support 'timeout' . Such as
reqwest({ url : your_url, timeout : 10 * 1000 // 10s })
I need timeout implemented, i.e. abort the XHR request after a given amount of time.
Should be as easy as setting
XMLHttpRequest.timeout
.