@zalter/http2-client-node
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@zalter/http2-client-node

An internal package

Usage

import { Client } from '@zalter/http2-client-node';

const client = new Client();
const response = await client.request('https://domain.example', {
  headers: {
    ':method': 'GET',
    'content-type': 'application/json'
  },
  body: JSON.stringify({ name: 'John' })
});

const data = response.body; // Buffer
console.log(`Received response status: ${response.headers[':status']}`); 

Package Sidebar

Install

npm i @zalter/http2-client-node

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

8.04 kB

Total Files

7

Last publish

Collaborators

  • zalter
  • alexandru.comanescu