BytesClub / serverX

A HTTP/HTTPS Web Server Handler by (C) Bytes Club
Other
3 stars 3 forks source link

Don't store all response in a variable [1/2] #18

Open rubencm opened 6 years ago

rubencm commented 6 years ago

For reading local files, i think that the server first should get the size of the file in bytes and send it in the header Content-Lengh, then send the file throught the socket while reading it.