[Lazarus] TFPHttpClient: download progress (or status).
silvioprog at gmail.com
Wed Jan 23 17:34:28 CET 2013
2013/1/23 silvioprog <silvioprog at gmail.com>
> First, sorry for my various requests. I'm contributing to improves this
> beautiful class.
> So, how to show a download progress?
> I think that the method "ReadResponse" should have two callbacks, like as
> "AContentLenght" and "AContentPosition". What do you think?
> Thank you!
Hm... If you change this internal funcion to a class method ...:
Function Transfer(LB : Integer) : Integer;
If Result<0 then
if (Result>0) then
... the progress of download will be possible, getting the currenty stream
size (or position?). :)
ps. i don't tested with chuncked content. :/
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus