anchor.diff:                                   {auth_bucket, fun menelaus_web_buckets:handle_bucket_info_streaming/3,
                                     [PoolId, Id]};
                                ["pools", PoolId, "buckets", Id, "stats"] ->
  -                                 {auth_bucket, fun menelaus_stats:handle_bucket_stats/3,
  +                                 {auth_bucket, fun handle_abortable_bucket_stats/3,
                                     [PoolId, Id]};
                                ["pools", PoolId, "buckets", Id, "statsDirectory"] ->
                                    {auth_bucket, fun menelaus_stats:serve_stats_directory/3,
  
positive.code:                           | ExtraHeaders],
                           mochijson2:encode(JSON)})
      end.
  
negative.code:                                   [PoolId, Id, NodeId]};
                               %% GET /pools/{PoolId}/buckets/{Id}/nodes/{NodeId}/stats
                               ["pools", PoolId, "buckets", Id, "nodes", NodeId, "stats"] ->
                                    {auth_bucket, fun handle_abortable_bucket_node_stats/4,
                                     [PoolId, Id, NodeId]};
                               %% GET /pools/{PoolId}/buckets/{Id}/stats/{StatName}
                               ["pools", PoolId, "buckets", Id, "stats", StatName] ->
                                    {auth_bucket, fun handle_abortable_specific_stat_for_bucket/4,
                                     [PoolId, Id, StatName]};
                               ["nodeStatuses"] ->
                                   {auth, fun handle_node_statuses/1};
  