unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* www http:user-agent
@ 2004-01-16 23:02 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2004-01-16 23:02 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-16 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16 23:02 www http:user-agent Kevin Ryde

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).