MCPcopy
hub / github.com/gofiber/fiber / SetStreamResponseBody

Method SetStreamResponseBody

client/client.go:696–699  ·  view source on GitHub ↗

SetStreamResponseBody enables or disables response body streaming. When enabled, the response body can be read as a stream using BodyStream() instead of being fully loaded into memory. This is useful for large responses or server-sent events.

(enable bool)

Source from the content-addressed store, hash-verified

694// instead of being fully loaded into memory. This is useful for large responses
695// or server-sent events.
696func (c *Client) SetStreamResponseBody(enable bool) *Client {
697 c.transport.SetStreamResponseBody(enable)
698 return c
699}
700
701// SetCookieJar sets the cookie jar for the client.
702func (c *Client) SetCookieJar(cookieJar *CookieJar) *Client {

Callers

nothing calls this directly

Calls 1

SetStreamResponseBodyMethod · 0.65

Tested by

no test coverage detected