Example #1
0
def hello() -> Response:
    print(request.headers)
    return Response("Hello World!!")
Example #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)
Example #3
0
 def dummy_func():
     return Response('hello')
Example #4
0
 def raise500(typed_id: int):
     1 / 0
     return Response("Don't reach here")
Example #5
0
 def top():
     return Response('Hello')
Example #6
0
 def typed_url_var(typed_id: int):
     body = "type: {}, value: {}".format(type(typed_id), typed_id)
     return Response(body)