MCPcopy Create free account
hub / github.com/csound/csound / GetURL

Method GetURL

Emscripten/examples/httpd.py:231–238  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
241def _HTTPServerProcess(conn, dirname, port, server_kwargs):

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected