vignettes/files/apis/01-02-html.R

#* @get /hello
#* @serializer html
function() {
  list(
    body = list(
      h1 = "hello world"
    )
  )
}

Try the plumber2 package in your browser

Any scripts or data that you put into this service are public.

plumber2 documentation built on Jan. 20, 2026, 5:06 p.m.