Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Return Headers when downloading a file #30

Open
RTK opened this issue Jul 7, 2020 · 2 comments
Open

Return Headers when downloading a file #30

RTK opened this issue Jul 7, 2020 · 2 comments

Comments

@RTK
Copy link

RTK commented Jul 7, 2020

Is your feature request related to a problem? Please describe.
In my use case I'd like to download files via this plugin and store a reference in my database. For further procedures I need the mime type which could be retrieved via Content-Type header in the response object. But unfortunately this plugin does not grant access to response metadata when using the downloadFile method.

Describe the solution you'd like
Make the HttpDownloadFileResult object extend the HttpResponse so that status code and headers will be returned.

Describe alternatives you've considered
Making a request beforehand to get the mime type via HEAD request is not viable since I am doing a lot of requests resulting in 2x the request amount.

Additional context

@sta55en
Copy link

sta55en commented Jul 8, 2020

This is a very important feature, caching is impossible without it.

@thomasvidas thomasvidas added this to the 1.0.0 milestone Feb 3, 2021
@thomasvidas thomasvidas removed this from the 1.0.0 milestone May 18, 2021
@nonsenseless
Copy link

I would like to add to this request as being able to access headers on the response is a really helpful feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants