View definition

(*Response).SetBodyStreamWriter

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

Description

SetBodyStreamWriter registers the given sw for populating response body.

This function may be used in the following cases:

* if response body is too big (more than 10MB).
* if response body is streamed from slow external sources.
* if response body must be streamed to the client in chunks
(aka `http server push` or `chunked transfer-encoding`).

See also SetBodyStream.

SetBodyStreamWriter is referenced in 2 repositories

github.com/valyala/fasthttp github.com/gavv/httpexpect