LWP::UserAgent get(): is there a default size for the `read_size_hint` option
-
30-05-2021 - |
Domanda
When using the get
method from LWP::UserAgent with :content_file
and :content_cb
set but without setting :read_size_hint
: will there be a constant default value or could the chunk-size change?
Soluzione
Looking in LWP::Protocol::http (LWP::Protocol version 6.00): the default chunk size is 4096 bytes.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow