def METHOD_NAME(self):
    """
    GET request handler.
    """
    self.send_response(200)
    if self.path.startswith("/xml"):
        response = "<row><text>test</text></row>".encode("utf-8")
        mime = "application/xml"
    else:
        response = '[{"text": "test"}]'.encode("utf-8")
        mime = "application/json"
    self.send_header("content-type", mime)
    self.send_header("content-length", len(response))
    self.end_headers()
    self.wfile.write(response)
    self.wfile.flush()