support rfc2397 data protocol

Waldo Bastian bastian at kde.org
Fri Jan 3 20:34:58 GMT 2003


On Saturday 28 December 2002 00:50, Leo Savernik wrote:
> Hello,
>
> As konqueror cannot handle mhtml (rfc2557) and hand-creating mhtml files is
> rather clunky, I propose the support of rfc2397 "The 'data' url scheme".
> See: http://www.ietf.org/rfc/rfc2397.txt
>
> data urls make writing some testcases infinitely easier, so I think
> konqueror should support them, too (Mozilla does it already).
>
> I volunteer to implement it, of course. However, before I start
> implementing I'd like to have the following issues cleared and I hope that
> you kfm developers can give me some hints.
>
> Implement rfc2397 as a kioslave kio_data?
> Advantages:
> - all security checks done to kioslaves would apply to data urls as well
> - other applications can make use of data urls not anticipated today
> Disadvantages:
> - data is for small immediate data, doesn't justify either asynchronous
> processing nor process starting overhead (as kioslaves imply)
>
> Implement as konqueror implementation detail like the "about:" protocol?
> Efficient, but restricted to konqueror.

You could also add it as a special case somewhere in KIO. E.g. make a 
KIO::DataSlave class that derives from KIO::Slave but that does all the 
handling itself instead of starting a seperate process.

It's a bit tricky to catch the actual "GET" request though since KIO::Job uses 
the Slave::connection() directly to send requests to the slave process.

Just making it its own seperate io-slave is probably by far the easiest.

Cheers,
Waldo
-- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com





More information about the kfm-devel mailing list