original_string: public function redirect($from, $to, $status = 302)
      {
          $handler = function ($request, ResponseInterface $response) use ($to, $status) {
              return $response->withHeader('Location', (string)$to)->withStatus($status);
          };
  
          return $this->get($from, $handler);
      }
code: public function redirect($from, $to, $status = 302)
      {
          $handler = function ($request, ResponseInterface $response) use ($to, $status) {
              return $response->withHeader('Location', (string)$to)->withStatus($status);
          };
  
          return $this->get($from, $handler);
      }
code_tokens: public function redirect ( $ from , $ to , $ status = 302 ) { $ handler = function ( $ request , ResponseInterface $ response ) use ( $ to , $ status ) { return $ response -> withHeader ( 'Location' , ( string ) $ to ) -> withStatus ( $ status ) ; } ; return $ this -> get ( $ from , $ handler ) ; }
docstring: Add a route that sends an HTTP redirect
  
  @param string              $from
  @param string|UriInterface $to
  @param int                 $status
  
  @return RouteInterface
docstring_tokens: Add a route that sends an HTTP redirect