/// <summary> /// Redirects the client to a given path or url /// </summary> /// <param name="redirectPath">The path or url to redirect to</param> public Task Redirect(string redirectPath) { UnderlyingResponse.Redirect(redirectPath); return(CompletedTask); }
/// <summary> /// Redirects the client to a given path or url /// </summary> /// <param name="redirectPath">The path or url to redirect to</param> /// <param name="permanent">Whether to respond with a temporary or permanent redirect</param> public Task Redirect(string redirectPath, bool permanent = false) { UnderlyingResponse.Redirect(redirectPath, permanent); return(CompletedRedirectTask); }