New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

req-fast

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

req-fast

This module is designed to be the fast, lightweight way to fetch the web content(HTML stream).

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5K
increased by83.38%
Maintainers
1
Weekly downloads
 
Created
Source

req-fast

This module is designed to be the fast, lightweight way to fetch the web content(HTML stream). it supports:

  • Gzip
  • Cookie
  • Auto-redirect
  • Proxy

Installation

npm install req-fast

Usage

see test or examples folder for a complete example

var req = require('req-fast');
req(options)

when options is instance of String, it means the URI of web page that to be requested. otherwise it should be an object, including:

  • uri || url uri of web page.
  • method http method, GET as default.
  • headers http headers(key-value pairs, such as {'Connection':'keep-alive', 'Cache-Control':'max-age=0'}).
  • maxRedirects the maximum number of redirects to follow(3 as default).
  • disableGzip request compressed content from server and automatic decompress response content, if this option sets to true, this feature will be disabled.
  • proxy the proxy including all the options from tunnel proxy.

Stream pipe

License

Copyright 2014 Tjatse

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Keywords

FAQs

Package last updated on 08 Oct 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc