mod_tee is an Apache Server module that saves all the request data, including all headers and both bodies (request and response). This is similar to mod_dumpio, except that each request is saved in a different file.
The actual writing of the data is asynchronous. There is a dedicated thread per process that writes to the disk. In case of using the worker MPM, there is only one thread per parent process.