repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
from flask import Flask
from flask import request
from flask import Response

app = Flask('app')

@app.route('/')
def hello_world():
  return Response(str(request.headers), mimetype='text/plain')

app.run(host='0.0.0.0', port=8080)