Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75b2e49

Browse files
Add method to ISimpleCometable interface to control whether comet RPC responds in two part (chunked header + real data) or one part (whole reponse)
1 parent f62923c commit 75b2e49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sources/net.sf.j2s.ajax/ajaxrpc/net/sf/j2s/ajax/ISimpleCometable.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,11 @@ public interface ISimpleCometable {
3939
*/
4040
public boolean cometRun(final Runnable asyncDoneCallback);
4141

42+
/**
43+
* Return whether send chunked encoding header before responding real data.
44+
* @return Returning true, HTTP chunked encoding header will be sent and real data will be
45+
* sent in later packet. Returning false, normal HTTP response will be sent after real data is ready.
46+
*/
47+
public boolean supportsChunkedEncoding();
48+
4249
}

0 commit comments

Comments
 (0)