input: Write a python function to create an HTTP server that handles GET and POST requests and responds with specific HTML messages.
  assert get_request() == "<html><body>This is a GET request</body></html>"
  assert post_request() == "<html><body>This is a POST request</body></html>"
output: def create_http_server():
      from http.server import BaseHTTPRequestHandler, HTTPServer
  
      class RequestHandler(BaseHTTPRequestHandler):
          def do_GET(self):
              self.send_response(200)
              self.send_header('Content-type', 'text/html')
              self.end_headers()
              self.wfile.write(b"<html><body>This is a GET request</body></html>")
  
          def do_POST(self):
              self.send_response(200)
              self.send_header('Content-type', 'text/html')
              self.end_headers()
              self.wfile.write(b"<html><body>This is a POST request</body></html>")
  
      server = HTTPServer(('localhost', 8080), RequestHandler)
      print("Starting server at http://localhost:8080")
      server.serve_forever()
  
  def get_request():
      import requests
      response = requests.get('http://localhost:8080')
      return response.text
  
  def post_request():
      import requests
      response = requests.post('http://localhost:8080')
      return response.text