LWP::UserAgent get(): is there a default size for the `read_size_hint` option
-
30-05-2021 - |
Pregunta
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?
Solución
Looking in LWP::Protocol::http (LWP::Protocol version 6.00): the default chunk size is 4096 bytes.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow