unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Subject: www http:user-agent
Date: Sat, 17 Jan 2004 09:02:46 +1000	[thread overview]
Message-ID: <87r7xzmr8p.fsf@zip.com.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

I'm not the first to notice this,

        * http.scm (http:user-agent): Use "/" as per rfc1945 sec 3.7.

And to help applications know what to do,

        * doc/guile-www.texi (http): Describe http:user-agent.


[-- Attachment #2: http.scm.user-agent.diff --]
[-- Type: text/plain, Size: 435 bytes --]

--- http.scm.~1.13.~	2004-01-07 16:58:04.000000000 +1000
+++ http.scm	2004-01-15 11:43:24.000000000 +1000
@@ -51,7 +51,7 @@
 ;;; Variables that affect HTTP usage.
 
 (define-public http:version "HTTP/1.0")  ; bump up to 1.1 when ready
-(define-public http:user-agent "GuileHTTP 0.1")
+(define-public http:user-agent "GuileHTTP/0.1")
 
 ;; An HTTP message is represented by a vector:
 ;;	#(VERSION STATUS-CODE STATUS-TEXT HEADERS BODY)

[-- Attachment #3: guile-www.texi.user-agent.diff --]
[-- Type: text/plain, Size: 1042 bytes --]

--- guile-www.texi.~1.3.~	2002-04-27 11:51:57.000000000 +1000
+++ guile-www.texi	2004-01-15 11:24:10.000000000 +1000
@@ -75,6 +75,20 @@
 
 @end titlepage
 
+@c  @nicode{S} is plain S in info, or @code{S} elsewhere.  This can be
+@c  used when the quotes that @code{} gives in info aren't wanted, but
+@c  the fontification in tex or html is wanted.
+@ifinfo
+@macro nicode {S}
+\S\
+@end macro
+@end ifinfo
+@ifnotinfo
+@macro nicode {S}
+@code{\S\}
+@end macro
+@end ifnotinfo
+
 @c ---------------------------------------------------------------------------
 @node Top
 @top  Guile-WWW
@@ -127,6 +141,14 @@
    (http:request method url . args)
 @end example
 
+@defvar http:user-agent
+A string @nicode{"GuileHTTP/0.1"} indicating the version of Guile-WWW
+in use.  An application can add this to its own version indication
+when constructing a User-Agent header.  See RFC 1945 sections 3.7 and
+10.15 for details.
+@end defvar
+
+
 @c ---------------------------------------------------------------------------
 @node    url
 @chapter url

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel

                 reply	other threads:[~2004-01-16 23:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r7xzmr8p.fsf@zip.com.au \
    --to=user42@zip.com.au \
    /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.
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).