1.1.8 • Published 5 years ago

@page-libs/ajax v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

page-ajax

NPM Version Build Status codecov

Ajax plugin for Page framework. It's based on the Async Tree Pattern.

Install

npm install @page-libs/ajax

Run test

npm test

Run build

npm run build

Package is already built. So, for using in Page you just need to install it.

Examples

new ResponseFromAjaxRequest({
  url: 'http://localhost:8000/',
  method: 'GET' 
}).call();

Usage

const {
  // Here needed async objects from the table below
} = require('@page-libs/ajax');
Async ObjectAsync/sync callParameters(default value/description)Representation result
ResponseBodyresponse.body, response = {statusCode, headers, body}response({statusCode, headers, body})body
ResponseFromAjaxRequestresponseFromAjaxRequestoptions[, requestBody] (options = {url, method, headers, mimeType, withCredentials, user, password, timeout, progressEvent, uploadProgressEvent}, requestBody)response({statusCode, headers, body})
ResponseHeadersresponse.headers, response = {statusCode, headers, body}response({statusCode, headers, body})object
ResponseStatusCoderesponse.statusCode, response = {statusCode, headers, body}response({statusCode, headers, body})number
1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago