9.5 Redirecting

(redirect-to rc path #:status 301 #:type '(text/html) #:headers '())
;; e.g
(get "/aaa" (lambda (rc) (redirect-to rc "/bbb")))
(get "/bbb" (lambda () "ok bbb"))

The path could be 2 possible patterns:

NOTE: redirect-to will always use absolute URL implicitly. Although the standard supports relative URL, there maybe some problems when you’re behind a proxy. So we use absolute URL to avoid these issues.