`xmantissa.web.SiteConfiguration` doesn't work with `StringEndpointPort`
mithrandi opened this issue · 3 comments
mithrandi commented
SiteConfiguration
specifically looks for TCPPort
to find an unsecured port, and SSLPort
to find a secured port. If you only have StringEndpointPort
s in your site, it'll never be able to generate absolute URIs.
glyph commented
This is kind of unsolvable in the general case; StringEndpoint
may well result in something that there's no way to generate a proper HTTP URL for.
glyph commented
Instead of inferring from a TCPPort
object, perhaps we should have an explicit NetLoc
object?