(SOLVED) How to send data back to Javascript after a GET request

I have already done fetching data from Javascript to Mongoose Web server after a POST command. Now, my goal is to send back requested data to JS.

For example, i will send a string “hello world” back to the javascript to parse and process it. How can be done? Thank you.

Can you please post the code, and add comments at the bottom for the part you want to do but are not sure how.

Hi. Thanks for your reply. I already figured it out. I used mg_printf_http_chunk() on mongoose to send data back to Javascript.