I have a program (simple web server) which I try to understand. There is a class called MyHandler. In this class we define 2 methods do_GET and do_POST.
I do not understand several things:
Where do we use the two above defined methods? I would expect to see something like that objectname.do_GET() and objectname.do_POST() but I do not see such things.
At which point we instantiate the class? Do we use the whole class (not an instance of the class) as an argument to the HTTPServer?
Why do we specify argument in the definition of the class (BaseHTTPRequestHandler) and then do not use it?