fasquest

A fast node request model, works very similar to `request` module but way faster and no dependencies.

Usage no npm install needed!

<script type="module">
  import fasquest from 'https://cdn.skypack.dev/fasquest';
</script>

README

Fasquest

A fast node request model, works very similar to request module but way faster and no dependencies + it works in the browser!

Install

npm install fasquest

Basic Node Example

const Fasquest = require('fasquest');

var options = {
  uri: 'http://127.0.0.1/',
  resolveWithFullResponse: true
}

Fasquest.request(options).then(res=>{
  console.log('hey look I got a response')
})


Basic Web Example

import Fasquest from "fasquest";
var options = {
  uri: 'http://127.0.0.1/',
  resolveWithFullResponse: true
}

await Fasquest.request(options);


Changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

v3.1.1

8 February 2021

  • Fixed bug with urls with : in their path f123cfa

v3.1.0

8 February 2021

  • Default to text/plain if no content type is provided with body dad6486

v3.0.2

5 February 2021

v3.0.1

20 October 2020

  • Fixed issue with timeouts, removed default timeout logic if no timeout is set in options 5113537

v3.0.0

22 September 2020

  • Fixed tests and fixed issue with options being mutated 0e90d84

v2.4.0

14 September 2020

  • added a way to set the agent 25a8521

v2.3.0

11 September 2020

v2.2.0

11 September 2020

  • Update index.mjs e5e037f
  • Added timeout functionality and fixed error message names. 9b7e593

v2.1.2

1 September 2020

  • Added npm publish at the end of postversion 7266053

v2.1.1

1 September 2020

v2.1.0

1 September 2020

v2.0.2

8 July 2020

v2.0.1

8 July 2020

v2.0.0

8 July 2020

  • Added browser es module version c54e7cc

v1.2.3

23 October 2019

  • Protect against response body not being able to be parsed #1
  • 1.2.3 json empty body fix b6f1f07

v1.2.2

12 September 2019

  • 1.2.2 Fixed content-length bug fb48137

v1.2.1

12 September 2019

  • 1.2.1 Fixed content-length bug 00f6b9d

v1.2.0

11 September 2019