Get the full url for a file on the local HTTP server. Args: rel_url: A URL fragment to convert to a full URL. For example, GetURL('foobar.baz') -> 'http://localhost:1234/foobar.baz'
(self, rel_url)
| 229 | self.process.join() |
| 230 | |
| 231 | def GetURL(self, rel_url): |
| 232 | """Get the full url for a file on the local HTTP server. |
| 233 | |
| 234 | Args: |
| 235 | rel_url: A URL fragment to convert to a full URL. For example, |
| 236 | GetURL('foobar.baz') -> 'http://localhost:1234/foobar.baz' |
| 237 | """ |
| 238 | return 'http://localhost:%d/%s' % (self.port, rel_url) |
| 239 | |
| 240 | |
| 241 | def _HTTPServerProcess(conn, dirname, port, server_kwargs): |