3 ms·
Do you mean > Avoiding ioutil.ReadAll AND > checking body length or do you mean, > Avoid ioutil.ReadAll() > and [instead you should be] checking the body
by spraak 10y ago
Do you mean
> Avoiding ioutil.ReadAll
AND
> checking body length
or do you mean,
> Avoid ioutil.ReadAll()
> and [instead you should be] checking the body length
?
Do you have an example of that, or an example of LimitReader?
- deleted 10y ago[deleted]
- piotrkubisa 10y agoYou made me curious, so I've prepared a simple benchmark - https://gist.github.com/piotrkubisa/8ccc308086378da7d2f6c0d550aded33 https://gist.github.com/piotrkubisa/8ccc308086378da7d2f6c0d5...
- spraak 10y agoThat's super awesome, thank you