I'm trying to download only the first 1kb of large files using http.Client
in go, but it seems like response.Body
is always fully buffered. Is there a control over how much to buffer?
If so, how can this be used with app engine urlfetch service?
The following works fine with app engine urlfetch in python, and I'm trying to port this to go:
from urllib2 import urlopen
req = Request(url)
urlopen(req).read(1024) # Read the first 1kb.