Project

Profile

Help

Task #4719

Updated by dkliban@redhat.com over 5 years ago

Docker plugin implements it's own content-app handler code. When I added lazy sync support[0], I had to copy and paste 3 methods and a constant from handler.py. It would be better if plugin writers could get such functionality by inheriting it from an object provided by the plugin API.  

 As a result of this task the plugin API will provide a StreamingHandler that will provide the following: 
 <pre> 
 HOP_BY_HOP_HEADERS constant 

 async def _stream_content_artifact(self, request, response, content_artifact) 

 async def _stream_remote_artifact(self, request, response, remote_artifact): 

 def _save_artifact(self, download_result, remote_artifact) 
 </pre> 
 [0] https://github.com/pulp/pulp_docker/pull/344

Back