R programming model
Written by
Updated at February 28, 2024
Setting a function handler means writing an R function with the following parameters:
event
: Requestcontext
: Call context information
Examples
Working with HTTP request arguments
The following function outputs the value of the arg
request parameter:
handler <- function(event, context) {
return (list(statusCode = 200, body = event$queryStringParameters$arg))
}