3.32Setting the maximum buffer size for response content
Created on Aug 17, 2026~3 min read
Configures the maximum number of bytes to buffer for the response content of a single request.
HttpRequestBuilder.Get("https://furion.net/") .SetMaxResponseContentBufferSize(10 * 1024); // Set to 10KBIf the Content-Length of the response content exceeds the configured MaxResponseContentBufferSize limit (for example, a limit of 10240 bytes), an HttpRequestException is thrown. The message of that exception is: Cannot write more bytes to the buffer than the configured maximum buffer size: '10240'..