View definition

(*Response).SetBodyStream

Defined in github.com/valyala/fasthttp/http.go

Description

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 is referenced in 2 repositories

github.com/valyala/fasthttp github.com/kataras/iris