To Develop a webserver to display about top five web application development frameworks.
HTML content creation
Design of webserver workflow
Implementation using Python code
Serving the HTML pages.
Testing the webserver
from http.server import HTTPServer,BaseHTTPRequestHandler
content = '''
<html>
<head>
</head>
<body>
<h1>Top web developement frameworks</h1>
<h2>1.Django</h2>
<h2>2.MEAN Stack</h2>
<h2>3.MERN Stack</h2>
<h2>4.ASP.NET core</h2>
<h2>5.Spring Framework</h2>
</body>
</html>
'''
class myserver(BaseHTTPRequestHandler):s
def do_GET(self):
self.send_response(200)
self.end_headers()
self.wfile.write(content.encode())
print("Get request recieved")
server_address = ('',80)
httpd = HTTPServer(server_address, myserver)
httpd.serve_forever()
Thus the webserver displays about top five web application development frameworks.