blob: edc309fa9afc9b67b9d00774987f5f83217bd1bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<tt>
<div dir="ltr">Hi again,<div>another idea is to make environment (Env), which is passed between middlewares, a part of Request record, so I could have an access to it in onresponse callback.</div><div><br></div><div>Any of that makes sense?</div><br>
<br>
<div><br></div><div>Cheers,</div><div>Łukasz Biedrycki</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 7, 2014 at 5:56 PM, Łukasz Biedrycki <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>in my application I would like to add some metrics per handler and per response http status code.</div><br>
<br>
<div><br></div><div>One way is to add on response callback function, but there I do not have an information about handler and handler opts.</div><br>
<div><br></div><div>Second way is to add a middleware, but then I do not have an information about response status code.</div><div><br></div><div>Frankly, I like second way more. </div><div>How do like an idea to add response status code to request record similar to: resp_headers or resp_body ?</div><br>
<br>
<br>
<div><br></div><div>Cheers,</div><div>Łukasz Biedrycki</div></div><br>
</blockquote></div><br></div><br>
</tt>
|