hyper2web icon indicating copy to clipboard operation
hyper2web copied to clipboard

Should raise an error if no response method is called

Open CreatCodeBuild opened this issue 7 years ago • 0 comments

async def post_record(http, stream, para):
    record = json.load(stream.data)
    # http.send_error(stream, 200)

Currently an end point function which doesn't call any response methods won't cause exceptions.

This function should cause an exception at the initialization time. That is, if the framework sees this, the app should not even start.

CreatCodeBuild avatar Jun 04 '17 04:06 CreatCodeBuild