GitXplorerGitXplorer
J

aws-lambda-http-server

public
19 stars
1 forks
2 issues

Commits

List of commits on branch master.
Unverified
33ed536f9bd9f330f7c0b6b4bf8235d3c0c3d0b8

v0.2.7

JJamesKyburz committed 4 years ago
Unverified
8ad5b45983df6f4ed54060c9f22faadcea84e35e

fix: api gateway version 2 http mapping

JJamesKyburz committed 4 years ago
Unverified
d96481768b65921f998f5b7e729ab21926bb7f51

v0.2.3

JJamesKyburz committed 4 years ago
Unverified
744d21c6e6c218cbb9035845fd8c9cfbfb93326d

fix: missing version defaults to 1.0

JJamesKyburz committed 4 years ago
Unverified
5ac1cbb568bde89f3931ba5e28af0a0f1d6e9e70

chore: update dependencies

JJamesKyburz committed 4 years ago
Unverified
3ec8929ffe6f74ae2d33fc8a9188af3f1a6d91c2

v0.2.0

JJamesKyburz committed 4 years ago

README

The README file for this repository.

aws-lambda-http-server

Call your http server stack code using an in memory http listener. No sockets needed.

js-standard-style build status downloads

Should work with any http framework.

Tests include the following http frameworks.

server.js

require('http').createServer((req, res) => {
  if (req.url === '/hello') return res.end('world')
})
.listen(5000)

aws-lambda.js

exports.proxy = require('aws-lambda-http-server')
require('./server.js')

serverless.yml example

service: test
provider:
  name: aws
  runtime: nodejs12.x
  region: eu-west-1
functions:
  proxy:
    handler: aws-lambda.proxy
    events:
      - http:
          path: /{proxy+}
          method: any
      - http:
          path: ''
          method: any

license

Apache License, Version 2.0