How to use @faasjs/http - 2 common examples

To help you get started, we’ve selected a few @faasjs/http examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github faasjs / faasjs / packages / server / src / __tests__ / funcs / a / index.func.ts View on Github external
import { Func } from '@faasjs/func';
import { Http } from '@faasjs/http';

const http = new Http();

export default new Func({
  plugins: [http],
  handler () {
    return 'a';
  }
});
github faasjs / faasjs / packages / server / src / __tests__ / funcs / hello.func.ts View on Github external
import { Func } from '@faasjs/func';
import { Http } from '@faasjs/http';

const http = new Http();

export default new Func({
  plugins: [http],
  handler () {
    return 'hello';
  }
});

@faasjs/http

## Functions

MIT
Latest version published 1 day ago

Package Health Score

78 / 100
Full package analysis

Popular @faasjs/http functions