Re: User Data in a HTRequest
To: Matthias Kalle Dalheimer <email@example.com>
Subject: Re: User Data in a HTRequest
From: Henrik Frystyk Nielsen <firstname.lastname@example.org>
Date: Mon, 08 Jan 1996 21:11:23 -0500
From email@example.com Mon Jan 8 21: 11:38 1996
Reply-To: Henrik Frystyk Nielsen <firstname.lastname@example.org>
X-Mailer: exmh version 1.6.2 7/18/95
> I do not know if this is right place to propose extensions to the
> www-lib, so please let me know if there is another place to do this.
This is a good place to do it - especially if the extensions are in form of a
> I would like to be able to associate additional data with a request
> in order to access this data in callbacks. A simple void* in the
> _HTRequest struct would already do the trick.
> Or is there already a way to accomplish this?
As Matthias Kalle Dalheimer[SMTP:email@example.com] writes, the context pointer
is the way to do this. You can see an example of how this is used in the
Command Line tool and also in the Line Mode browser. In the latter you will
find two functions called Context_new() and Context_delete() which does
Henrik Frystyk Nielsen, <firstname.lastname@example.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA