Skip to content

Instantly share code, notes, and snippets.

@I-himawari
Created January 15, 2021 07:46
Show Gist options
  • Select an option

  • Save I-himawari/d28fff2e687250ef916edbb7e41058ac to your computer and use it in GitHub Desktop.

Select an option

Save I-himawari/d28fff2e687250ef916edbb7e41058ac to your computer and use it in GitHub Desktop.
flask port 80
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=["GET", "POST"])
def hello():
print(request.headers)
print(request.get_data())
name = "Hello World"
return name
@app.route('/good')
def good():
name = "Good"
return name
if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0', port=80)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment