From: Mark Plaksin <happy@mcplaksin.org>
Subject: Re: url-cache - (require 'url)
Date: Sun, 19 Feb 2006 14:56:21 -0500 [thread overview]
Message-ID: <ws8xs7rul6.fsf@stone.tss.usg.edu> (raw)
In-Reply-To: jwv3bjovy8p.fsf-monnier+emacs@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>>> Maybe there's a better approach to the problem I'm trying to solve. I want
>>>> to add support for ETags to nnrss in Gnus. To do that, nnrss needs access
>>>> to HTTP headers. nnrss currently uses mm-url-insert which calls
>>>> url-insert-file-contents. Those seem like the right functions to use but
>>>> they don't provide access to the HTTP headers.
>>>
>>> Why do they seem better to you than url-retrieve (or even url-http) given
>>> the fact that they do not give you the info you need?
>
>> Because url-insert-file-contents does some coding-system things that I
>> assume are important for inserting URLs into buffers. I don't know
>> anything about coding-systems. I could write a new function that uses
>> url-retrieve or url-http but I'd probably have to duplicate the
>> coding-system parts which seems wasteful.
>
>> It also seems that other applications that want to insert the contents of a
>> URL could benefit from having access to HTTP headers.
>
> Good point.
>
> I guess a good answer to that is simply to make url-insert-file-contents
> "trivial" by moving most of its contents to a separate function.
> Say url-insert, as in the patch below. Does that provide the functionality
> you're looking for?
(Sorry for the huge delay. Busy life.)
This looks good to me. The idea being that any application which needs
access to HTTP headers should call url-retrieve{,-synchronously} and then
use url-insert if it wants to insert the body in a buffer, right?
Thanks!
prev parent reply other threads:[~2006-02-19 19:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-01 17:48 url-cache - (require 'url) David Reitter
2006-01-02 5:08 ` Stefan Monnier
2006-01-02 9:47 ` David Reitter
2006-01-02 16:25 ` Stefan Monnier
2006-01-02 18:03 ` David Reitter
2006-01-03 1:46 ` Stefan Monnier
2006-01-03 9:51 ` David Reitter
2006-01-03 15:54 ` Stefan Monnier
2006-01-03 16:15 ` David Reitter
2006-01-03 20:05 ` Stefan Monnier
2006-01-05 22:11 ` Stefan Monnier
2006-01-06 18:12 ` Mark Plaksin
2006-01-09 1:37 ` Stefan Monnier
2006-01-14 18:32 ` Mark Plaksin
2006-01-15 4:45 ` Stefan Monnier
2006-01-15 4:59 ` Mark Plaksin
2006-01-15 6:09 ` Stefan Monnier
2006-01-15 18:18 ` Mark Plaksin
2006-01-16 2:26 ` Stefan Monnier
2006-01-16 2:49 ` Mark Plaksin
2006-01-16 18:45 ` Stefan Monnier
2006-02-19 19:56 ` Mark Plaksin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ws8xs7rul6.fsf@stone.tss.usg.edu \
--to=happy@mcplaksin.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).