# HTTP\_REPONSE event triggering behaviour

**URL:** <https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382>\
**Category:** Technical Forums\
**Created:** [September 4, 2013, 2:08pm UTC](https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382 "2013-09-04T14:08:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurel](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aurel](https://community.f5.com/u/Aurel)\
**Post date:** [September 4, 2013, 2:08pm UTC](https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382/1 "2013-09-04T14:08:28Z")

</div>

Hi, I am using the “HTTP\_RESPONSE” event in an iRule, because i need to know the response time (i mean : the time for the request to be served)

Does the " HTTP\_RESPONSE " event is triggered when the data content of the response starts to be sent, or doest it wait for the end the transmission of the complete data stream ?

The purpose of the question is that we could have a delta according to the size of the data of the response, if it is triggered when the response starts to be sent. We could for example think that the response time is short, whereas the client still waiting for the complete response of its request.

Thank you in advance for your reply Aurel

---

<div class="post-metadata">

**Author:** ![JRahm](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jrahm/32/3327_2.png) [@JRahm](https://community.f5.com/u/JRahm)\
**Post date:** [September 4, 2013, 6:11pm UTC](https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382/2 "2013-09-04T18:11:24Z")

</div>

Should fire when the headers have been parsed. What specifically are you wanting to measure?

---

<div class="post-metadata">

**Author:** ![Aurel](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aurel](https://community.f5.com/u/Aurel)\
**Post date:** [September 4, 2013, 7:05pm UTC](https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382/3 "2013-09-04T19:05:18Z")

</div>

Well, it seems that “response time” (time for the request to be served or processed) calculation is based on : http\_request time - http response\_time = response time. I’m wondering if that’s always relevant. This is because it could be a time window between the server starts to send the data of the response, and between the end of the data of the response. This for one given request. I hope that looks more clear to you.

---

<div class="post-metadata">

**Author:** ![JRahm](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jrahm/32/3327_2.png) [@JRahm](https://community.f5.com/u/JRahm)\
**Post date:** [September 4, 2013, 7:34pm UTC](https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382/4 "2013-09-04T19:34:58Z")

</div>

I guess it depends on what you really want to measure. The server’s responsiveness or the delivery of all the data? If you want the former, that calculation is fine. If you want the latter, you might be better with http\_request time - http\_response\_release = response time.

---

<div class="post-metadata">

**Author:** ![Aurel](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Aurel](https://community.f5.com/u/Aurel)\
**Post date:** [September 5, 2013, 7:18am UTC](https://community.f5.com/t/http-reponse-event-triggering-behaviour/57382/5 "2013-09-05T07:18:08Z")

</div>

That’s it. The latter will measure the time of the complete delivery of the data from the server side. Will remains then the time for the data to reach the client but that’s something else. Thanks for your reply.
