{"action":"created","issue":{"url":"https://api.github.com/repos/greim/hoxy/issues/44","labels_url":"https://api.github.com/repos/greim/hoxy/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/greim/hoxy/issues/44/comments","events_url":"https://api.github.com/repos/greim/hoxy/issues/44/events","html_url":"https://github.com/greim/hoxy/issues/44","id":94392244,"number":44,"title":"Accept connections over HTTPS.","user":{"login":"sholladay","id":3674950,"avatar_url":"https://avatars.githubusercontent.com/u/3674950?v=3","gravatar_id":"","url":"https://api.github.com/users/sholladay","html_url":"https://github.com/sholladay","followers_url":"https://api.github.com/users/sholladay/followers","following_url":"https://api.github.com/users/sholladay/following{/other_user}","gists_url":"https://api.github.com/users/sholladay/gists{/gist_id}","starred_url":"https://api.github.com/users/sholladay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sholladay/subscriptions","organizations_url":"https://api.github.com/users/sholladay/orgs","repos_url":"https://api.github.com/users/sholladay/repos","events_url":"https://api.github.com/users/sholladay/events{/privacy}","received_events_url":"https://api.github.com/users/sholladay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/greim/hoxy/labels/2.1","name":"2.1","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-10T21:04:02Z","updated_at":"2015-07-17T14:54:13Z","closed_at":null,"body":"This feature request is geared towards being able to run an HTTPS proxy server, as opposed to being able to connect through to HTTPS target pages on the other side, as is the goal of #4.\r\n\r\n## The Problem\r\n - Presently, all client connections to hoxy are only possible over plain HTTP.\r\n - In reverse mode, target pages that assume or demand HTTPS in their implementation may break completely because an HTTPS reverse proxy endpoint is not available.\r\n - In forward mode, target pages that assume or demand HTTPS in their implementation will generally load their resources in a way that avoids proxying completely, because typically the OS routes HTTPS requests through an entirely different proxy configuration (via the `$HTTPS_PROXY` environment variable, for example, instead of `$HTTP_PROXY`) and in many cases this is out of the control of the user of hoxy's API. Setting both configurations to the same proxy will work in some scenarios when #4 lands, but will break when the environment assumes (reasonably) that the proxy itself speaks HTTPS.\r\n\r\n## The Solution\r\n - Provide an API to create a hoxy instance that will respond to HTTPS connections. This could be exposed through configuration on the existing options object given to `Proxy` or via a new class, as is common with other libraries.\r\n - Ideally, all combinations of client and target protocols work by the time this is complete.\r\n\r\n| Client Protocol | Target Protocol  | Proxy Direction | Works Today |\r\n| :------------------- | :-------------------- | -------------------- | ------------------ |\r\n| HTTP               | HTTP                 | Forward           | :heavy_check_mark: |\r\n| HTTP               | HTTPS               | Forward           | :x: ([soon](4)) |\r\n| HTTPS             | HTTP                 | Forward           | :x:                   |\r\n| HTTPS             | HTTPS              | Forward            | :x:                    |\r\n| HTTP               | HTTP                 | Reverse           | :heavy_check_mark: |\r\n| HTTP               | HTTPS               | Reverse           | :heavy_check_mark: |\r\n| HTTPS             | HTTP                 | Reverse           | :x:                   |\r\n| HTTPS             | HTTPS              | Reverse            | :x:                   |"},"comment":{"url":"https://api.github.com/repos/greim/hoxy/issues/comments/122300669","html_url":"https://github.com/greim/hoxy/issues/44#issuecomment-122300669","issue_url":"https://api.github.com/repos/greim/hoxy/issues/44","id":122300669,"user":{"login":"snoj","id":391184,"avatar_url":"https://avatars.githubusercontent.com/u/391184?v=3","gravatar_id":"","url":"https://api.github.com/users/snoj","html_url":"https://github.com/snoj","followers_url":"https://api.github.com/users/snoj/followers","following_url":"https://api.github.com/users/snoj/following{/other_user}","gists_url":"https://api.github.com/users/snoj/gists{/gist_id}","starred_url":"https://api.github.com/users/snoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoj/subscriptions","organizations_url":"https://api.github.com/users/snoj/orgs","repos_url":"https://api.github.com/users/snoj/repos","events_url":"https://api.github.com/users/snoj/events{/privacy}","received_events_url":"https://api.github.com/users/snoj/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T14:54:13Z","updated_at":"2015-07-17T14:54:13Z","body":"e651fcbdccdcef1eb75b45f76936690a5bd92b79 should do the trick for 8.....maybe 7 (hadn't tested that one)."}}