{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/2867","repository_url":"https://api.github.com/repos/Mashape/kong","labels_url":"https://api.github.com/repos/Mashape/kong/issues/2867/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/2867/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/2867/events","html_url":"https://github.com/Mashape/kong/issues/2867","id":255770762,"number":2867,"title":"[feat] add a header，indicates which plugin terminated the request","user":{"login":"WALL-E","id":736927,"avatar_url":"https://avatars0.githubusercontent.com/u/736927?v=4","gravatar_id":"","url":"https://api.github.com/users/WALL-E","html_url":"https://github.com/WALL-E","followers_url":"https://api.github.com/users/WALL-E/followers","following_url":"https://api.github.com/users/WALL-E/following{/other_user}","gists_url":"https://api.github.com/users/WALL-E/gists{/gist_id}","starred_url":"https://api.github.com/users/WALL-E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WALL-E/subscriptions","organizations_url":"https://api.github.com/users/WALL-E/orgs","repos_url":"https://api.github.com/users/WALL-E/repos","events_url":"https://api.github.com/users/WALL-E/events{/privacy}","received_events_url":"https://api.github.com/users/WALL-E/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-06T23:24:18Z","updated_at":"2017-09-07T03:41:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The client needs to know whether the request has reached the backend service, this can be useful for performance analysis, error checking, and troubleshooting.\r\n\r\nFor example:\r\n\r\n```\r\nX-Terminated-By: Rate Limiting\r\n```\r\n\r\nor\r\n\r\n```\r\nX-Reached-Backend : False\r\n```\r\n\r\nRelated #2767 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/327675305","html_url":"https://github.com/Mashape/kong/issues/2867#issuecomment-327675305","issue_url":"https://api.github.com/repos/Mashape/kong/issues/2867","id":327675305,"user":{"login":"WALL-E","id":736927,"avatar_url":"https://avatars0.githubusercontent.com/u/736927?v=4","gravatar_id":"","url":"https://api.github.com/users/WALL-E","html_url":"https://github.com/WALL-E","followers_url":"https://api.github.com/users/WALL-E/followers","following_url":"https://api.github.com/users/WALL-E/following{/other_user}","gists_url":"https://api.github.com/users/WALL-E/gists{/gist_id}","starred_url":"https://api.github.com/users/WALL-E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WALL-E/subscriptions","organizations_url":"https://api.github.com/users/WALL-E/orgs","repos_url":"https://api.github.com/users/WALL-E/repos","events_url":"https://api.github.com/users/WALL-E/events{/privacy}","received_events_url":"https://api.github.com/users/WALL-E/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T03:41:32Z","updated_at":"2017-09-07T03:41:32Z","author_association":"CONTRIBUTOR","body":"> Would it not make more sense to have each plugin be responsible for this? It's possible different plugins could have different responses, and so this behavior could vary from environment to environment.\r\n\r\nI'll think about it.\r\n\r\n> I suspect a new development API might facilitate this behavior?\r\n\r\nIt is useful for advanced developers.\r\n\r\n> Related #2767\r\n\r\nIf a request is terminated by a plugin,  the plugin may need to set HEADERS.PROXY_LATENCY\r\n"}}
{"actor":{"display_login":"WALL-E"}}