I need to write an API endpoint which returns control to the user almost immediately but continues processing the request asynchronously. I am handling this by starting a go routine that handles the processing and the main calling go routine sets status to 200 and returns.
But I get this error: http: invalid Read on closed Body