View source: R/extract-context.R
extract_and_augment_context | R Documentation |
The extract_context
function dispatches on the class of an
event to extract context specific to that class. By default, it returns an
empty list. This function takes that class-specific context and combined it
with the context that is applicable for all classes, contained in both
event headers and environment variables.
extract_and_augment_context(event, config, ...)
event |
the response received from querying the next invocation endpoint. |
config |
A list of configuration values as created by the
|
... |
additional arguments passed to |
list
Context is metadata associated with each invocation. If the handler function
accepts a context
argument then it will automatically receive at runtime a
named list consisting of these values along with the arguments in the body
(if any). For example, a function such as my_func(x, context)
will receive
the context argument automatically. The context
argument must be named
(...
will not work).
Refer to vignette("lambda-runtime-in-container", package = "lambdr")
for details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.