3 Commits

Author SHA1 Message Date
Carlo Alberto Ferraris 6f81292b37 wip 2020-02-28 19:33:23 +09:00
Erik Dubbelboer ce0e78724b Add ReadCloser method to jwriter and buffer
When marshalling something as body for a http.Request we can only use
BuildBytes() which always allocates a buffer for our whole body. This
pull request adds a ReadCloser() method which returns an io.ReadCloser
that can be passed as body into http.NewRequest. This ReadCloser will
read from the existing buffs and putBuf them when they are not needed
anymore.
2017-02-17 16:38:15 +08:00
Victor Starodub bc7232a0c0 Fixed Buffer.DumpTo() 2016-04-05 01:49:49 +03:00