What does CoverletResponse # flushBuffer () do?

1 answer

Both flush()and close()are completely different methods:

flush () ...

The method is flush()used to flush the buffered response to the client. This will also fix the response headers.

By default, the server container automatically calls this if the internal buffer is reached.

You must explicitly call if you want to send the answer in custom chunks.

close () ...

The method is close()used to close the response stream so that no more data is written.

Servlet.

, . IOException.

+4

All Articles