hapic
hapic copied to clipboard
Add extended support for HapicFile
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.