Migrating Response Size Limit functionality from HLRC to Java Api client

I was previously using the RestHighLeveLClient's RequestOptions to allow for larger response limits but I do not see a corresponding function/ability to do this using the new Java API client. Can someone shed some light on this or point me in the right direction? TIA

Previous way we were doing this:

requestOptionsBuilder.setHttpAsyncResponseConsumerFactory(() -> new ContentLengthResponseConsumer(queryResponseLimitInBytes));
client.search(searchRequest, requestOptionsBuilder.build());

I also saw this somewhat-relevant question but I think this has more to do with the request - not the response.

I tested the java api client with large responses and didn't even encounter the original org.apache.http.ContentTooLongException: entity content is too long [xxx] for the configured buffer limit [yyy] exception so I assume the problem no longer exists, which is good.

Though I'm not sure that this was a guardrail in place to prevent blowing up the heap. That might've been a good thing to have.