What url for an in-memory buffer?

I'm writing a routine that PUTs a memory buffer using HTTP. It uses
HTPutAbsolute() to do the work. That routine needs an anchor to represent
the memory buffer. The code looks something like:
 // Create an anchor to represent the buffer being written.
 anchor = HTAnchor_findAddress(??????);
 HTAnchor_setDocument(HTAnchor_parent(anchor), bufAddr);
 HTAnchor_setLength(HTAnchor_parent(anchor), bufLen);
 // Perform a ranged PUT on that anchor.
 request = HTRequest_new();
 HTRequest_addRange(request, "bytes", rangeStr);
 HTPutAbsolute(HTAnchor_parent(anchor), urlStr, request);
As you can see, I don't know what URL to use to represent the memory
buffer. HTAnchor_findAddress() will try to parse whatever URL is passed in,
but I have no idea what form the URL should take. Should I just make
something up, for instance "memory://buffer"? The request and the anchor
are short-lived and are deleted at the end of the routine.
regards,
-jim

Received on Monday, 14 December 1998 13:55:19 UTC

AltStyle によって変換されたページ (->オリジナル) /