prometheus-cpp icon indicating copy to clipboard operation
prometheus-cpp copied to clipboard

is the HTTP response chunked?

Open SameeCodeMan opened this issue 2 years ago • 0 comments

I understand you are using "Civetweb" to create the HTTP server. Is the HTTP response chunked? Or is it sending the entire buffer in the response in one go?

I'm as asking this as I have huge data (about 2M to 5M) which will be going in the HTTP response.

I believe there is already a provision to do this: mg_set_response_header(conn, "Transfer-Encoding", "chunked");

Just wanted to know if it is already done as part of the existing code base or not.

SameeCodeMan avatar Apr 04 '23 06:04 SameeCodeMan