Sha256: 73be8c7a501c3c49f01a15a22a3f0874503bd4d765310ae6f95711f212527bae

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 Bytes

Contents

def handler event
  # FUNCTION RESPONSE
  #
  # You can render text, json, yaml, html or js. Example:
  # render html: '<p>Hello World!</p>'
  # render yaml: {hello: 'world!'}
  #
  # Status:
  # The default status is 200. You can set a custom status like this:
  # render json: {error: 'Could not perform the action'}, status: 422
  #
  # Headers:
  # The 'Content-Type' header is automatically set when you use 'render'.
  # You can set custom headers using a hash with string keys. Example:
  # render text: 'It Works!', headers: {'TransactionId' => 23928}

  # Write code here
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
faastruby-0.3.5 example-blank/handler.rb
faastruby-0.3.4 example-blank/handler.rb
faastruby-0.3.3 example-blank/handler.rb
faastruby-0.3.2 example-blank/handler.rb