h1 <- handler_inline("/robots.txt", "User-agent: *\nDisallow:",
content_type = "text/plain")
h2 <- handler_inline("/health", '{"status":"ok"}',
content_type = "application/json")
Run the code above in your browser using DataLab