Project

Profile

Help

Story #1179

closed

Pulp - Story #1150: As a user, I can lazily fetch repositories

As a developer I can receive headers while using download_one()

Added by bmbouter over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Target Release - Nectar:
1.4.4
Groomed:
No
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Quarter:

Description

While using download_one() a developer should be able to receive the headers that were delivered with the download. These headers should be able to be given the developer as soon as nectar receives them and before any data is written to the download request.

On possible implementation would be to add the ability to register a callback which will pass the headers as arguments as soon as they are known. The developer could register this callback before initiating the download request. Another approach may be to store the headers in the download request but this needs to be done in a structured way and must be available before the data is written to the download request.


Related issues

Blocks Pulp - Task #1195: Develop the pulp-streamerCLOSED - CURRENTRELEASEjcline@redhat.com

Actions

Also available in: Atom PDF