The interlaced encoding response is used when the length of the response is unknown until the response is complete. An empty fragment indicates the end of the response. This is the only way that a client can be notified of the completion of a response.
All this goes well with comets. You send the first piece when you receive a request. You can also send additional βheartbeatsβ while waiting for the action to complete. An empty fragment will notify the client of the completion of the response.
source
share