{"action":"created","issue":{"url":"https://api.github.com/repos/request/request/issues/1672","labels_url":"https://api.github.com/repos/request/request/issues/1672/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/1672/comments","events_url":"https://api.github.com/repos/request/request/issues/1672/events","html_url":"https://github.com/request/request/issues/1672","id":94366994,"number":1672,"title":"Accept req of http server directly","user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-10T18:42:11Z","updated_at":"2015-07-13T15:06:08Z","closed_at":null,"body":"Everytime I create a minimal proxy thingy, I have to parse the urls and stuff myself.\r\nIt'd be nice to have request parse them automatically. this is what I have in mind\r\n```js\r\nhttp.createServer(function (req, resp) {\r\n  var x = request(req)\r\n  x.pipe(resp)\r\n})\r\n```\r\nso it automatically checks for it's http method and pipes the req to itself and other normal stuff that we do each time."},"comment":{"url":"https://api.github.com/repos/request/request/issues/comments/120961273","html_url":"https://github.com/request/request/issues/1672#issuecomment-120961273","issue_url":"https://api.github.com/repos/request/request/issues/1672","id":120961273,"user":{"login":"simov","id":1694112,"avatar_url":"https://avatars.githubusercontent.com/u/1694112?v=3","gravatar_id":"","url":"https://api.github.com/users/simov","html_url":"https://github.com/simov","followers_url":"https://api.github.com/users/simov/followers","following_url":"https://api.github.com/users/simov/following{/other_user}","gists_url":"https://api.github.com/users/simov/gists{/gist_id}","starred_url":"https://api.github.com/users/simov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simov/subscriptions","organizations_url":"https://api.github.com/users/simov/orgs","repos_url":"https://api.github.com/users/simov/repos","events_url":"https://api.github.com/users/simov/events{/privacy}","received_events_url":"https://api.github.com/users/simov/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T15:06:08Z","updated_at":"2015-07-13T15:06:08Z","body":"It should work for POST requests too. Also that *extraction* logic you are talking about is related to your use case specifically, which is implementing a proxy server for your needs. So this feature request looks like out of scope for this module. I'm still open for suggestions though. Also you can publish your own proxy server implementation, I'm sure it will be helpful for a lot of people."}}