How to redirect to a edit node page with RedirectResponse? From a hook (not form_alter), I want redirect the user to a node edit page (like mywebsite/node/[nid]/edit)
How can I do that with the RedirectResponse class? 

After searches, I found the following code. 

new RedirectResponse(\Drupal::url('route.name'));


How can I get/find the route.name for a node edit page? 

Update : 

According the cilefen's answer =) 
From my entity_insert hook : 

function article_entity_insert(EntityInterface $entity) {
  if ($entity-&gt;bundle() == "article"){
    Url::fromRoute('entity.node.edit_form',['node', $entity-&gt;id()]); //But when I create a new node, the "view" page is loaded and not the edit page
    dpm($entity-&gt;id()); //show the node id
  }
}


Update 2 :

The command 

dpm(Url::fromRoute('entity.node.edit_form',['node', $entity-&gt;id()]));


return 

Drupal\Core\Url Object
(
    [urlGenerator:protected] =&gt; 
    [urlAssembler:protected] =&gt; 
    [accessManager:protected] =&gt; 
    [routeName:protected] =&gt; entity.node.edit_form
    [routeParameters:protected] =&gt; Array
        (
            [0] =&gt; node
            [1] =&gt; 31
        )

    [options:protected] =&gt; Array
        (
        )

    [external:protected] =&gt; 
    [unrouted:protected] =&gt; 
    [uri:protected] =&gt; 
    [internalPath:protected] =&gt; 
    [_serviceIds:protected] =&gt; Array
        (
        )

)


But the command 

dpm(Url::fromRoute('entity.node.edit_form',['node', $entity-&gt;id()])-&gt;toString());


Return this error : 


  [Mon Feb 15 01:38:30.081002 2016] [:error] [pid 10219] [client
  192.168.1.48:49246] Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "Some mandatory
  parameters are missing ("node") to generate a URL for route
  "entity.node.edit_form"." at
  /var/www/system/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
  line 757, referer: http://192.168.1.44/system/node/add/article
Note that \Drupal::url() is deprecated. You should use the static methods of the Url class to create URLs from routes.

To find the route names, use the Drupal console drupal router:debug. From that I found:

 entity.node.edit_form  /node/{node}/edit


I think what you need is Url::fromRoute('entity.node.edit_form', ['node' =&gt; 1]) where 1 is the node ID to be edited.