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

Method send

document.py:48–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)
50 self.connection.send_header(self.header[0], self.header[1])
51 self.connection.end_headers()
52
53 if (self.response != 302):
54 self.document = self.document.replace ('<replace_with_document_class_dont_remove>', '') #Remove reference mark before sending
55 self.connection.wfile.write(bytes(self.document, "utf-8"))

Callers 4

no_actionMethod · 0.80
hansMethod · 0.80
lightMethod · 0.80
timetableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected