identity

The identity fn returns an input value as output.

The identity fn is useful in testing or building systems in which the middleware performs all the necessary work to handle an invocation.

fnrunner Key

fnrun.fn/identity

Configuration

N/A

Examples

The following configuration describes a system that echoes JSON http requests.

source: 
  fnrun.source/http:
    treatOutputAsBody: true
    outputHeaders:
      content-type: application/json
middleware:
  - fnrun.middleware/key: body
fn: fnrun.fn/identity

Edit this page on GitHub