# Namespace: Fetch

## CB_Net. Fetch

Static class to manage things related to the Fetch API. It will return itself if it is tried to be instantiated.

Source:
  - CrossBase/net/fetch/CB_Net_Fetch.js, line 15

### Methods

#### <static> get(resource [, init]) → {Promise}

  Function that points to the fetch method. If the Fetch API is not supported natively, the fetch function will be a polyfill.

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `resource` | string | Request |  | First parameter of the fetch method.
  `init` | Object | <optional> | Second parameter of the fetch method.

  Source:
    - CrossBase/net/fetch/CB_Net_Fetch.js, line 41

  ##### Returns:

  Type
    Promise

#### Search results