func (resp *Response) SetBodyStream(bodyStream io.Reader, bodySize int) {
	resp.ResetBody()
	resp.bodyStream = bodyStream
	resp.Header.SetContentLength(bodySize)
}
func (resp *Response) SetBodyStream(bodyStream io.Reader, bodySize int) {
	resp.ResetBody()
	resp.bodyStream = bodyStream
	resp.Header.SetContentLength(bodySize)
}
func ( resp * Response ) SetBodyStream ( bodyStream io . Reader , bodySize int ) { resp . ResetBody ( ) resp . bodyStream = bodyStream resp . Header . SetContentLength ( bodySize ) }
// SetBodyStream sets response body stream and, optionally body size.
//
// If bodySize is >= 0, then the bodyStream must provide exactly bodySize bytes
// before returning io.EOF.
//
// If bodySize < 0, then bodyStream is read until io.EOF.
//
// bodyStream.Close() is called after finishing reading all body data
// if it implements io.Closer.
//
// See also SetBodyStreamWriter.
SetBodyStream sets response body stream and optionally body size . If bodySize is > = 0 then the bodyStream must provide exactly bodySize bytes before returning io . EOF . If bodySize < 0 then bodyStream is read until io . EOF . bodyStream . Close () is called after finishing reading all body data if it implements io . Closer . See also SetBodyStreamWriter .