This package has been deprecated

Author message:

No longer maintained.

aitch

1.0.1 • Public • Published

aitch

Toolkit for constructing hypertext service clients.

Installation

npm install legendary
npm install aitch

This module has a peer dependency on Legendary.

Usage

See API Docs.

Examples

Make an HTTP request against the GitHub API:

'use strict';
 
var aitch = require('aitch');
 
var client = new aitch.Client({
  transport: new aitch.Transport({
    hostname: 'api.github.com'
  }),
  headers: {
    host: 'api.github.com',
    accept: 'application/vnd.github.v3+json',
    'user-agent': 'novemberborn/aitch'
  }
});
 
var response = client.get({
  pathname: '/repos/novemberborn/aitch/releases'
});
 
response.stream.pipe(process.stdout);

/aitch/

    Package Sidebar

    Install

    npm i aitch

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • novemberborn