{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/plug/issues/250","labels_url":"https://api.github.com/repos/elixir-lang/plug/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/plug/issues/250/comments","events_url":"https://api.github.com/repos/elixir-lang/plug/issues/250/events","html_url":"https://github.com/elixir-lang/plug/issues/250","id":82441591,"number":250,"title":"Allow manipulation of request headers","user":{"login":"rwdaigle","id":1012,"avatar_url":"https://avatars.githubusercontent.com/u/1012?v=3","gravatar_id":"","url":"https://api.github.com/users/rwdaigle","html_url":"https://github.com/rwdaigle","followers_url":"https://api.github.com/users/rwdaigle/followers","following_url":"https://api.github.com/users/rwdaigle/following{/other_user}","gists_url":"https://api.github.com/users/rwdaigle/gists{/gist_id}","starred_url":"https://api.github.com/users/rwdaigle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwdaigle/subscriptions","organizations_url":"https://api.github.com/users/rwdaigle/orgs","repos_url":"https://api.github.com/users/rwdaigle/repos","events_url":"https://api.github.com/users/rwdaigle/events{/privacy}","received_events_url":"https://api.github.com/users/rwdaigle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-29T14:03:33Z","updated_at":"2015-05-29T14:36:31Z","closed_at":null,"body":"Currently there are the following functions that allow you to manage *response* headers:\r\n\r\n* `put_resp_header/3`\r\n* `get_resp_header/2`\r\n* `delete_resp_header/2`\r\n* `update_resp_header/4`\r\n\r\nYet for *request* headers there is only `get_req_header/2`.\r\n\r\nUnless there is a philosophical reason for not wanting to allow the modification of request headers, I believe the functions that operate and request and responses should be symmetrical.\r\n\r\nThis is especially useful when you consider the case for plugs, whose functionality often operates on, and modifies, incoming request headers for the downstream app."},"comment":{"url":"https://api.github.com/repos/elixir-lang/plug/issues/comments/106829508","html_url":"https://github.com/elixir-lang/plug/issues/250#issuecomment-106829508","issue_url":"https://api.github.com/repos/elixir-lang/plug/issues/250","id":106829508,"user":{"login":"rwdaigle","id":1012,"avatar_url":"https://avatars.githubusercontent.com/u/1012?v=3","gravatar_id":"","url":"https://api.github.com/users/rwdaigle","html_url":"https://github.com/rwdaigle","followers_url":"https://api.github.com/users/rwdaigle/followers","following_url":"https://api.github.com/users/rwdaigle/following{/other_user}","gists_url":"https://api.github.com/users/rwdaigle/gists{/gist_id}","starred_url":"https://api.github.com/users/rwdaigle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwdaigle/subscriptions","organizations_url":"https://api.github.com/users/rwdaigle/orgs","repos_url":"https://api.github.com/users/rwdaigle/repos","events_url":"https://api.github.com/users/rwdaigle/events{/privacy}","received_events_url":"https://api.github.com/users/rwdaigle/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T14:36:31Z","updated_at":"2015-05-29T14:36:31Z","body":"> PR is also welcome\r\n\r\nOn it.\r\n\r\n> Notice 2 of those already exist\r\n\r\nGreat!"}}