Help to understand a bit of a code! (ESP8266)

kjetilmarstein:
client.flush(); // what does client.flush do?

here nothing. there was mistake in some Arduino libraries where flush() cleaned the input, but it should send the buffered output