Allow for specifying schema in "proxy"#1937
Conversation
whimboo
left a comment
There was a problem hiding this comment.
As it looks like this PR doesn't yet address the comment from #1920 (comment) for Safari.
While this looks way more flexible I'm not sure which of these provided alternatives are actually the best. It might be good to get at least consensus about that.
| <a><code>proxyType</code></a> is "<code>manual</code>". | ||
| <td>A <a>valid proxy per protocol specifiers</a> mutually exclusive with other | ||
| scheme-specific proxy configurations ("<code>httpProxy</code>", | ||
| "<code>sslProxy</code>", "<code>socksProxy</code>"). |
There was a problem hiding this comment.
We probably should have a processing algorithm as for other parts of the spec to actually enforce mutual exclusivity with httpProxy/sslProxy/socksProxy, validate incoming values, or handle unknown/unsupported schemes. Without this, implementations have no normative guidance on what to do.
| "default": { | ||
| "host": "proxy.example.com", | ||
| "port": 443, | ||
| "protocol": "socks5" |
There was a problem hiding this comment.
If an implementation (e.g. Safari) cannot route "https" traffic through a SOCKS5 proxy, there is no specified error code or behavior.
| </tr> | ||
|
|
||
| <tr> | ||
| <td><code>port</code> |
There was a problem hiding this comment.
Many proxy protocols have well-known default ports. Making port mandatory is stricter than any existing proxy field. Should we have it optional?
| </pre> | ||
|
|
||
| <p>A <a>proxy per protocol specifiers</a> is considered to be a | ||
| <dfn>valid proxy per protocol specifiers</dfn>, if each of it's |
There was a problem hiding this comment.
| <dfn>valid proxy per protocol specifiers</dfn>, if each of it's | |
| <dfn>valid proxy per protocol specifiers</dfn>, if each of its |
|
|
||
| <p>A <a>proxy per protocol specifiers</a> is considered to be a | ||
| <dfn>valid proxy per protocol specifiers</dfn>, if each of it's | ||
| <a>own property</a> is a non-empty <a>String</a>, and each of it's keys is a |
There was a problem hiding this comment.
| <a>own property</a> is a non-empty <a>String</a>, and each of it's keys is a | |
| <a>own property</a> is a non-empty <a>String</a>, and each of its keys is a |
Yet another approach for #1922 addressing #1920
Preview | Diff
This change is