1.2.2 • Published 12 months ago

got-send-url v1.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

got-send-url

got-send-url is an HTTP communication library based on the GOT module for Node.js.

Installation

npm install got-send-url

Usage

import sendURL from "got-send-url";

const result = await sendURL({
  url: `https://www.npmjs.com/package/got-send-url`,
  method: "GET",
  body: {
    text: "hello world",
  },
  headers: {
    cookie: "cookie",
  },
  retryLimit: 5,
  retryDelay: 3000,
  responseType: "json",
  useProxyYn: false,
  useThrowYn: true,
});

Tips

  • url, method, and body fields are required.
  • By default, it retries on communication failure. To disable this option, set retryLimit to 0.
  • The retry delay time increases exponentially (starting from 1 second) on each retry. If you want a fixed delay time, use the retryDelay option.

Features

  • Based on the GOT module used in over 10,000 packages and more than 5 million repositories
  • Handles request values to make it easy to use the core functionalities of the GOT module
1.2.2

12 months ago

1.2.1

12 months ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago