title: Get matched route name in Web API
body: <p>In my Web API handler I need to get the <strong>name</strong> of the route that matched the request.</p>
  
  <pre><code>public class CurrentRequestMessageHandler : DelegatingHandler
  {
      protected override Task&lt;HttpResponseMessage&gt; SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
      {
          var route = request.GetRouteData().Route;
          //now what?
  
          return base.SendAsync(request, cancellationToken);
      }
  }
  </code></pre>