Aborts this request.
The request's promise will reject with an up.Aborted error.
let request = up.request('/path')
request.abort()
try {
let response = await request
} catch (result) {
if (result.name === 'AbortError') {
console.log('Request was aborted.')
}
}
A message describing the reason for aborting this request.
If omitted, a generic reason like "Aborted request to GET /path" will be used.
The reason will be set as the error's message.
Tip Your coding agent can search these docs locally with the Unpoly agent skill