Aaron, 

Even if you use additional headers, you will still need your two Restlet
layers to know about them in order for them to update and propagate them.

Regarding custom headers, they are supported without problem. I thought you
were only referring to trailer headers possible in HTTP with
chunked-encoding.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1

Best regards,
Jerome


-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow
Envoyé : lundi 4 août 2008 20:20
À : [email protected]
Objet : Re: Multi-tiered reporting of profiling information using custom
headers?

Hi Jerome,

Thanks for your response!

I'll consider the include-in-payload approach, it just seems less elegant to

me than using custom headers (I guess this requires every client to know how

to deal with extra info in the payload). I'll also consider the log-to-file 
approach, although this is much less convenient (I guess this requires 
clients to explicitly ask for the info, then info must be found and parsed 
from file).

When you say Restlet doesn't support trailing headers, does this imply that 
it's not a reliable approach for me to try passing stuff in custom headers? 
Will I face the buffering problem, or some other problem? Are there any good

workarounds that would allow me to use custom headers?

Thanks!
Aaron


"Jerome Louvel" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

Hi Aaron,

You are facing an interesting problem... The easiest way would be to pass
this profiling information right inside your request and response entities.

Another way would be to log information into a shared storage (file, db,
etc.) using unique request IDs to reconcile data. For this purpose, you
might be interested by the ConnectorService#beforeSend() and afterSend()
methods.

Also, we don't support trailing HTTP headers and there is no plan yet to
support them in the future.

Best regards,
Jerome

-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow
Envoyé : samedi 2 août 2008 06:13
À : [email protected]
Objet : Multi-tiered reporting of profiling information using custom
headers?

Hi Restlet Community,

I'm working with a 3-tiered system, the bottom 2 tiers using Restlet. The
higher Riestlet tier makes multiple requests down to the lowest Restlet
tier, in order to serve a single one of its own requests. I'd like to start
compiling meaningful profiling information per request. So I'd like each
tier to pass info up to the next tier, to be collated and ultimately
reported to the end user. (Assuming the end user is an inquiring developer
who'd like to know a lot about "what just happened".)

Do any of you have experience doing this kind of thing, and if so, any
pointers for me? I've been warned to be careful about buffering of
responses, since that can prevent me from having the oppopurtinity to add
info via a custom header right at the tail end of a response. I'm not sure
about this... is this a limitation with the Restlet framework? Are there any

other limitations to be aware of as far as using custom headers for this
purpose? Or any better approaches?

Any thoughts or advice greatly appreciated...

Best wishes,
Aaron




Reply via email to