39
39
def handle_request(self):
40
40
"""Select the method to handle the request and return a response."""
41
41
if self.application != 'archive':
46
45
elif self.method == 'POST':
48
47
elif self.method == 'GET':
53
51
def send_response(self, code, response='', reason=None, headers={}):
54
52
"""Set the status code and reason, then return the response."""