Article View: news.software.nntp
Article #85779Re: Starting: New NNTP server development
From: Russ Allbery
Date: Wed, 10 Jul 2013 19:40
Date: Wed, 10 Jul 2013 19:40
19 lines
2153 bytes
2153 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> - Ability to easily fetch article(s) or propertie(s) using some kind of
> additional HTTP/JSON-like endpoint ? Being JS-friendly might be a good
> idea to expand the client types (ie. pure-browser clients might use more
> easily this)
The RFC 822 article format very naturally maps to JSON, since it's
basically key/value pairs plus an additional key for the body. You do
need to deal with the fact that some headers can be duplicated, but
describing those as JSON lists works fairly well. You lose header
ordering that way, though, so you shouldn't use that as an intermediate
format when doing article propagation. (But there's no reason to anyway.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87ip0ijjah.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!.POSTED!not-for-mailReferences:
<krj2c7$mao$1@speranza.aioe.org> <krkd1p$13h$1@news.httrack.net>Show Full Headers
Complete Article Headers
Message-ID: <87ip0ijjah.fsf@windlord.stanford.edu> Subject: Re: Starting: New NNTP server development Date: Wed, 10 Jul 2013 12:40:06 -0700 From: Russ Allbery <rra@stanford.edu> References: <krj2c7$mao$1@speranza.aioe.org> <krkd1p$13h$1@news.httrack.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!.POSTED!not-for-mail Newsgroups: alt.comp.jgaa,news.software.nntp Organization: The Eyrie Lines: 19 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet-its.stanford.edu 1373485209 23297 171.67.225.134 (10 Jul 2013 X-Complaints-To: news@usenet-its.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:4OaGhOwubrKZTfa167GgoK30pgk= X-Original-Bytes: 1857