[FFmpeg-soc] http header dictionary
Luca Barbato
lu_zero at gentoo.org
Sat Jun 5 20:50:52 CEST 2010
On 06/05/2010 08:29 PM, Ronald S. Bultje wrote:
> Hi,
>
> On Sat, Jun 5, 2010 at 1:46 PM, Josh Allmann <joshua.allmann at gmail.com> wrote:
>> I need to add some, replace some, and remove some. But not hundreds.
>> Will setting headers via flat strings be preferable? Like in the following:
>> http://github.com/j0sh/ffmpeg-soc/commit/004f4a60761fd7dc3d299525b7f337550f0cc5cd
>
> Yes.
>
> I agree with Michael, a dictionary is way too much complexity. It's
> the Java/c# way of solving a non-problem. In the HTTP proto handler's
> header creation function, a simple strcasestr() in the "custom header"
> of "bla:" (or, more elegantly, startswith("bla:") or
> strcasestr("\r\nbla:")) should be more than sufficient.
Not sure how efficient or handy...
lu
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
More information about the FFmpeg-soc
mailing list