[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Reverse order

From: Christian Grothoff
Subject: Re: [libmicrohttpd] Reverse order
Date: Tue, 30 Jun 2015 11:51:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0


No special reason, other than that we keep the headers in a
single-linked list (without a tail pointer) and thus appending is more
expensive than prepending.  Also, if you truly care about the order, you
could just reverse the application calls, so there is no good reason to
change it now (might just break somebody relying on it). Not that MHD's
API gives you any firm assurances on the order of headers when you add
them to the response.

Happy hacking!


On 06/30/2015 11:41 AM, Markus Doppelbauer wrote:
> Hello,
> If I add http-headers to a response via "MHD_add_response_header()", the
> headers are written in reverse order - first in last out. Is there a special
> reason?
> Thanks a lot
> Markus

Attachment: 0xE29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]