Re: Possible external_acl_type format tag

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 24 May 2013 21:13:59 +1200

On 24/05/2013 11:51 a.m., quickdry21 wrote:
> I was wondering if it would be possible to include an a HTTP response status
> line tag to the external_acl_type, or even possibly the HTTP-Version,
> Status-Code and Reason-Phrase as three separate format tags.
>
> The reason I ask is I'm trying to hook some of my code that needs the status
> code from the response into an external_acl_type call. This doesn't really
> seem like the purpose of the external_acl_type, but I'm hoping it will suit
> my purpose. It doesn't seem like an unreasonable thing to be able do,
> considering you can already pass response headers as format tags.
>
> If this is possible to do, I'm willing to write the additional code myself
> if someone could point me in the right direction.

Should be possible. Patches welcome.

FYI: I am working on converting all these format codes to using the
logformat code system. So if your patch could use the token name "%<Hs"
there will not be any re-config needed when that change happens in the
not too distant future.

Amos
Received on Fri May 24 2013 - 09:14:10 MDT

This archive was generated by hypermail 2.2.0 : Fri May 24 2013 - 12:01:47 MDT