if (FALSE) {
# Inside a Plumber endpoint
#* @post /myendpoint
function(req, res) {
whapi_log_plumber_req(req) # Prints nicely formatted info about the incoming request
list(success = TRUE)
}
# Print only metadata, no headers/body
whapi_log_plumber_req(req, show_headers = FALSE, show_body = FALSE)
}
Run the code above in your browser using DataLab