v1.2.0.1-beta1
Fetch Network API

Description

The Fetch API provides an interface for fetching network or local resources.

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

The two main interfaces for the 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