• Post Reply Bookmark Topic Watch Topic
  • New Topic

response committed  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When is the response said to be committed?
Thanks,
Meghasyam.
 
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The response is considered to be committed after flush() method is called.

Originally posted by Meghasyam Bokam:
Hi,
When is the response said to be committed?
Thanks,
Meghasyam.

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Meghasyam Bokam:
Hi,
When is the response said to be committed?
Thanks,
Meghasyam.


A response is said to be committed when flush() is called either explicitly, using response.flush() or automatically, when output buffer is filled.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A response is said to be committed after its status code and headers have been written. The isCommitted method is used to check whether the response has been committed.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!