Generates a CSRF protecting session token.
\Symfony\Component\HttpFoundation\Response The response object.
public function csrfToken() { return new Response(drupal_get_token('rest'), 200, array( 'Content-Type' => 'text/plain', )); }