tests/testthat/annotations/redirect.R

#* @redirect !get /redir/<x> /newdir/<x>
#* @redirect any /broken/* /temp/*
#* @redirect any /remote http://example.com
NULL

#* @forward /proxy/ http://127.0.0.1:9876
NULL

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.