MCPcopy Index your code
hub / github.com/RobinMeis/Siri-API / request

Method request

document.py:44–46  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

42 self.header = ["Location", target]
43
44 def request (self, url): #Sends a HTTP request (useful for HTTP APIS). If you don't need the response, you can do this after calling send. This will decrease loading time in the browser
45 f = urllib.request.urlopen(url)
46 return(f.read().decode('utf-8'))
47
48 def send (self): #Send the answer to the browser
49 self.connection.send_response(self.response)

Callers 1

lightMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected