Edit this page

API Network requests
module up.network

This package implements an optimized HTTP client that is used for all requests made through Unpoly.

The HTTP client offers many quality-of-life improvements, for example:

Unpoly's HTTP client is used automatically when rendering, e.g. when following a link or submitting a form. To use the client from your own JavaScripts, use up.request().


Guides

Features

Essentials

All features

JS
up.ajax([url], [options]) deprecated

Makes an AJAX request to the given URL and caches the response.

JS
up.cache.alias(oldRequest, newRequest) experimental

Makes the cache assume that newRequest has the same response as the already cached oldRequest.

JS
up.cache.clear() deprecated

Expires cache entries.

JS
up.cache.evict([pattern]) stable

Evicts responses in the cache.