Sha256: a45f8f12af28229e63973164004016094c7b439eb818a4a445d17f0b474ab0d5
Contents?: true
Size: 898 Bytes
Versions: 18
Compression:
Stored size: 898 Bytes
Contents
# To deploy this function, cd into its folder and run: # faastruby deploy-to WORKSPACE_NAME def handler event # The 'event' argument has the following attributes # event.body - The request body # event.context - The execution context # event.headers - The request headers # event.query_params - The query params # 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} # TODO: Write code here end
Version data entries
18 entries across 18 versions & 1 rubygems