(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:
(redirect-to rc (string->uri "https://nalaginrut.com/feed/atom"))
.
(redirect-to rc "/login")
.
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.