【发布时间】:2016-09-03 13:33:11
【问题描述】:
import hug
something = {'foo': 'bar'}
@hug.put('/')
def update_something():
something['foo'] = <value_of_bar_from_http_put_request>
【问题讨论】:
-
我从未使用过这个库,但根据他们的文档,
bar似乎应该是你的函数的参数。
标签: python api python-3.x hug