Here I'm creating a post request and I want to trigger the status of the request and force it to fail if it took a specific period of time with (pending) status, is that even possible?
fetch('http://localhost:5000/api', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
message: this.state.input,
})
})
I'm looking for some way using axios also, not Fetch API only.