v1.2.1.0
Network APIs

Description

The Network API (Net) provides an interface for requesting and sending network or local resources.

This contains an implementation of the common Web Fetch API as described, for example, on MDN, with a few differences and an expanded feature set.

The two main interfaces for the Fetch API are the Net.fetch() and Net.request() functions, which are both essentially wrappers around an XMLHttpRequest object. fetch() provides an asynchronous Promise-based interface, while request() returns results directly (synchronously).

The Fetch API further extends XMLHttpRequest with formalized classes/objects for Headers, Request, and Response types.
(Note that the Headers type is not documented here locally since the implementation matches what is already documented at MDN.)

Namespaces

namespace  Net
 

Members

class  Request
 
class  Response