cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to detect end of headers?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Feb 2009 22:08:23 +0100 (CET)

On Mon, 23 Feb 2009, Piotr Dobrogost wrote:

> I guess reading arbitrary header's value is a common task. Have you thought
> about adding the ability to register a header callback for given set of
> headers?

No I haven't really done that. But yeah, with a decently implemented string
matching-algorithm (Aho-Corasick perhaps?) that does something better than
just comparing strings in a loop it could make sense.

-- 
  / daniel.haxx.se
Received on 2009-02-23