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

httpfunc

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

httpfunc

AWS Lambda function that does HTTP requests.

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

httpfunc

AWS Lambda function that does HTTP requests. httpfunc make HTTP request based on environment variables passed to the function. E.g. setting HTTP_URL=https://example.com will cause making GET request to https://example.com. List of all supported environment variables can be found below. Functions returns response object or error.

Install

npm i httpfunc --save

Usage

You can use httpfunc with every deployment tool (e.g. Serverless Framework, Apex, etc.). Just create a simple file with the handler:

exports.handler = require('httpfunc');

and use this handler file in e.g. serverless.yaml

functions:
  http:
    handler: index.handler
    environment:
      HTTP_URL: https://example.com

Supported environment variables

  • HTTP_URL - request URL
  • HTTP_METHOD - HTTP method (default: GET)
  • HTTP_HEADERS_<header name> - header name in camel case form e.g. ContentType

Keywords

FAQs

Package last updated on 11 Jan 2018

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