OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Fetch API request timeout?

  • Thread starter Thread starter Akshay Lokur
  • Start date Start date
A

Akshay Lokur

Guest
I have a fetch-api POST request:

Code:
fetch(url, {
  method: 'POST',
  body: formData,
  credentials: 'include'
})

I want to know what is the default timeout for this? and how can we set it to a particular value like 3 seconds or indefinite seconds?

<p>I have a <code>fetch-api</code> <code>POST</code> request:</p>
<pre><code>fetch(url, {
method: 'POST',
body: formData,
credentials: 'include'
})
</code></pre>
<p>I want to know what is the default timeout for this? and how can we set it to a particular value like 3 seconds or indefinite seconds?</p>
 

Latest posts

Top