http-types
http-types copied to clipboard
optimize into_bytes buffer and into_json capacity by body len
On read as body is big file, read_to_end is too slowly. Therefor capacity depends on Body.len() like a into_string()