It is very interesting for me where all data is stored until I read request body.
For example, a file is uploading to the server. The Java program receives this file. It is impossible to store whole file content in buffers if file is very big - 100 GB.
Does Java streams this file from remote computer? I mean remote computer sends small part of data, Java receives this part and waits for next part. When remote computer decided that server read first part it sends second part of data and so on.
Does Java and its HttpServer
works in this way or it stores whole file on the disk as Apache+PHP do?