2017-08-20から1日間の記事一覧
リクエストでJSONを送信してきた場合の処理 from bottle import route, run, request @route("/hello") def hello(): contentType = request.get_header('Content-Type') print(f"header Content-Type: {contentType}") if contentType == "application/json…
リクエストでJSONを送信してきた場合の処理 from bottle import route, run, request @route("/hello") def hello(): contentType = request.get_header('Content-Type') print(f"header Content-Type: {contentType}") if contentType == "application/json…