Open spacehobo opened 8 years ago
In fact, the interface can give urlparse objects to the receiving side.
Unfortunately this is the interface, one of the first, created almost 5 years ago. Interfaces don't have versions for protocol so if this is insufficient we would need to create a new interface. I've been drafting an email about a new "website" protocol which would allow us to take what we've learned from http and make a more comprehensive interface
@marcoceppi Any update on the "website" protocol?
Separating out port, hostname, is-this-SSL flags, etc are useless busywork in a universe where we have URLs. The primary structured data format for the HTTP interface should be nothing but URLs.
A reverse proxy? Two urls: one for the desired front-end, and one for the active back-end.
WSGI charm? Two urls: one for the desired front-end, and one file:/// for the wsgi script itself.
URLs make intuitive sense to us as users of the Web, and they're the only sensible choice for passing site configuration data around. They're self-documenting and complete. And it's not like we don't have urlparse() when we need it!