[Development] Does QNetworkAccessManager could provide the Server Sent Event feature ?

Paul Chavent paul.chavent at fnac.net
Tue Feb 17 20:50:44 CET 2015


On 02/16/2015 11:58 PM, Thiago Macieira wrote:
> On Monday 16 February 2015 23:52:19 Paul Chavent wrote:
>> The parts 6 "Parsing an event stream" [2] gives the specs of the format over
>> http. The part 7 "Interpreting an event stream" explains how it should be
>> handled by the client. For some sample code, I've found useful those two
>> pages [3] and [4].
>>
>> [2] http://www.w3.org/TR/eventsource/#parsing-an-event-stream
>> [3]
>> https://today.java.net/article/2010/03/31/html5-server-push-technologies-pa
>> rt-1#sse [4] http://www.html5rocks.com/en/tutorials/eventsource/basics/
>
> I'm looking for the HTTP command verb and expected replies.
>
> If it's a GET, POST, PUT, DELETE or similar, with the reply a 200 Ok, then
> QNAM already supports this and no modifications are necessary.
>

The difference is that the server can send asynchronous responses (event). I will look deeper in the current code base.

Thanks for your replies.





More information about the Development mailing list