@page-libs/ajax
Ajax plugin for Page framework.
Last updated a year ago by guseyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @page-libs/ajax 
SYNC missed versions from official npm registry.

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 Object Async/sync call Parameters(default value/description) Representation result
ResponseBody response.body, response = {statusCode, headers, body} response({statusCode, headers, body}) body
ResponseFromAjaxRequest responseFromAjaxRequest options[, requestBody] (options = {url, method, headers, mimeType, withCredentials, user, password, timeout, progressEvent, uploadProgressEvent}, requestBody) response({statusCode, headers, body})
ResponseHeaders response.headers, response = {statusCode, headers, body} response({statusCode, headers, body}) object
ResponseStatusCode response.statusCode, response = {statusCode, headers, body} response({statusCode, headers, body}) number

Current Tags

  • 1.1.8                                ...           latest (a year ago)

15 Versions

  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |