import mql from '@microlink/mql' const { data } = await mql('https://microlink.io', { timeout: "10s" })
timeout
Type:
Default: 28s
<string> | <number>
Default: 28s
It sets the maximum quantity of time allowed for the internal request lifecycle over the target url.
The default value is the maximum time available.
You can specify the value in any of the following human-readable way:
https://microlink.io&timeout=10s # 10000 https://microlink.io&timeout=10secs # 10000 https://microlink.io&timeout=10second # 10000 https://microlink.io&timeout=10seconds # 10000 https://microlink.io&timeout=10000 # 10000