ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.46k stars 889 forks source link

post flask request.data #366

Closed xF4ker closed 4 years ago

xF4ker commented 4 years ago

hey guys. can i do like this in crow, sorry im a newbie in crow. i need value s = request.data.decode('utf-8') so i can decrypt my s value `from flask import Flask, request charset='utf-8'

app = Flask(name)

@app.route('/post', methods = ["POST"]) def post(charset='utf-8'):

s = request.data.decode('utf-8')
print(s)
return ''

app.run(host='0.0.0.0', port= 8090, debug=True)`