10 lines
219 B
Python
10 lines
219 B
Python
|
|
code = 200
|
|
ct = "text/html"
|
|
content = "<!DOCTYPE html><html><body><h1>Bonjour!</h1></body></html>"
|
|
print(f"HTTP/1.1 {code}")
|
|
print(f"Content-Type: {ct}")
|
|
print(f"Content-Length: {len(content)}")
|
|
print()
|
|
print(content)
|