Hi Guys, In my project I am disabling chunked tran...
# help
p
Hi Guys, In my project I am disabling chunked transfer encoding using
Copy code
.useChunkedTransferEncoding(Options.ChunkedEncodingPolicy.NEVER)
This works well for normal mocks, but it is not working for admin endpoints ie. I'm still getting the header in my response as chunked. Any special configuration exists for admin ?
r
i dont think there is an option to disable chunking for admin endpoints. what is the reason for this configuration for admin endpoints?
p
Actually I am copying response body and headers to another response object. I don't want chunked responses there. This was the reason.
r
im not sure i understand your goal. i dont think there's much reason to add this option to the admin endpoints since the http standard i believe requires clients support chunked encoding. if you're copying the responses into another response object, cant your client just read the entire response body and copy it into the new response object as a single string/blob of bytes?