New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

httply

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httply

A wrapper for incoming and outgoing HTTP message.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

Httply

Build Status Coverage Status

A wrapper for incoming and outgoing HTTP message.

Usage

npm install --save httply
const http = require('http');
const { IncomingMessage, OutgoingMessage } = require('httply');

const server = http.createServer(async (request, response) => {
  const incoming = new IncomingMessage(request);
  const { url, method, headers } = incoming;
  const query = incoming.query;
  const rawBody = await incoming.rawBody;

  const outgoing = new OutgoingMessage({
    status: 200,
    headers: {},
    content: { hello: 'world' }
  });
  outgoing.sendBy(response);
});

Keywords

http

FAQs

Package last updated on 31 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts