hapic icon indicating copy to clipboard operation
hapic copied to clipboard

Add extended support for HapicFile

Open inkhey opened this issue 5 years ago • 0 comments

Currently: with #153, we allow support for : return HapicFile(file_path='/tmp/myfile.png') with any supported framework.

Only Pyramid support file_object and others params correctly.

Expected:

  • Support File object for all framework
  • Support additional params for all framework (mimetype, content_length, ...) in both file_path and file_object case. Additional param like those, should override default_value.
  • Make code more generic without using specific method from framework, prefer to change headers directly and deal to provide almost same result for all framework. This may be tricky as for supporting some complex feature like http range.
  • Support for Range and conditional request in other framework than pyramid.

inkhey avatar Mar 27 '19 14:03 inkhey