Search code examples
perlsizelwp-useragent

LWP::UserAgent get(): is there a default size for the `read_size_hint` option


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?


Solution

  • Looking in LWP::Protocol::http (LWP::Protocol version 6.00): the default chunk size is 4096 bytes.