mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-22 15:42:20 +03:00
15 lines
298 B
Python
15 lines
298 B
Python
from flask import request
|
|
from app import app
|
|
|
|
|
|
@app.route("/post-multilines", methods=["POST"])
|
|
def post_multilines():
|
|
s = request.data.decode("utf-8")
|
|
assert s == "name,age\nbob,10\nbill,22\n"
|
|
return ""
|
|
|
|
|
|
@app.route("/get-bob-age", methods=["GET"])
|
|
def get_bob_age():
|
|
return "10"
|