Edit this page

up.Request up.Request.prototype.loadPage()
Class method

This feature is experimental. It may be changed or removed in a future version.

Loads this request object as a full-page request, replacing the entire browser environment with a new page from the server response.

The full-page request will be loaded with the URL, method and params from this request object. Properties that are not possible in a full-page request (such as custom HTTP headers) will be ignored.


let request = await up.request('/path')

try {
  let response = await request('/path')
} catch (result) {
  if (result.name === 'AbortError') {
    console.log('Request was aborted.')

This website uses cookies to improve usability and analyze traffic.
I accept or learn more