setRedirect

fun setRedirect(statusCode: <Error class: unknown class>, redirectUri: String)

Sets @msg's status_code to @status_code and adds a Location header pointing to @redirect_uri. Use this from a class@Server when you want to redirect the client to another URI.

Parameters

statusCode

a 3xx status code

redirectUri

the URI to redirect @msg to