示例#1
0
文件: hello.py 项目: kuteken/kobin
def hello() -> Response:
    print(request.headers)
    return Response("Hello World!!")
示例#2
0
def delete_task(task_id: int):
    if not task_service.delete_task(task_id):
        raise HTTPError("Task is not found.", 404)
    return Response('', status=204)
示例#3
0
 def dummy_func():
     return Response('hello')
示例#4
0
 def raise500(typed_id: int):
     1 / 0
     return Response("Don't reach here")
示例#5
0
 def top():
     return Response('Hello')
示例#6
0
 def typed_url_var(typed_id: int):
     body = "type: {}, value: {}".format(type(typed_id), typed_id)
     return Response(body)