hapic icon indicating copy to clipboard operation
hapic copied to clipboard

Output decorator must allow bypass response workaround without context specialized

Open buxx opened this issue 7 years ago • 0 comments

In hapic.decorator.OutputControllerWrapper#after_wrapped_function we must directly return response if it's a "already HTTP response". Actually:

  • It is hardcoded
  • It is bottle specific

Use context to be context agnostic and place this behavior in overrideable method.

buxx avatar Oct 10 '17 15:10 buxx