Hi again Thierry,

One other question re the removal of the onContinue callbacks.

In the snapshot code I was trying to use the interim response code to 
support an Expect/CONTINUE interaction.  I wasn't getting the behaviour I 
expected though on reflection I wasn't convinced the client I had was 
doing the right thing.

So if onContinue has gone away what is the client-side mechanism for 
receiving and responding to an interim response?

My use case is the client sending the headers of a PUT request and the 
server sending a CONTINUE only if the stated size of the entity is 
acceptable.

Thanks,
Garry

On Thu, 14 Jan 2010, Thierry Boileau wrote:

> Hi Garry,
>
> I'm afraid not. This value is set with a "new Date()" value just before
> the header is written...
>
> The "onContinue" was thought to be called before the entity is sent,
> after the headers were written. I say "was", because it has been removed
> since no clear use case emerged.
>
> Best regards,
> Thierry Boileau
>
>> Hi,
>>
>> I too hit this problem as I wanted to set a specific value for the Date 
>> header.
>>
>> In absence of this ability -- I've seen issue 1001 -- can I get the value of 
>> the header client side before the request is sent in any way?  I want to set 
>> another header based on the date.
>>
>> I thought that setting a Uniform instance as the oncontinue handler of the 
>> ClientResource would allow this but the handle() method in Uniform doesn't 
>> seem to be called before the request is actually sent?
>>
>> Thanks,
>> Garry
>>
>> ------------------------------------------------------
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2436971
>>
>>
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2437281

-- 
Garry Turkington
[email protected]

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2437399

Reply via email to