From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#30154: [PATCH] web: Export http-request. Date: Sat, 23 Jun 2018 23:31:56 +0200 Message-ID: <87woupw5o3.fsf@gnu.org> References: <20180621172718.16029-1-arunisaac@systemreboot.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1529789471 3682 195.159.176.226 (23 Jun 2018 21:31:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2018 21:31:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 30154-done@debbugs.gnu.org To: Arun Isaac Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jun 23 23:31:07 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWq7d-0000p9-VJ for guile-bugs@m.gmane.org; Sat, 23 Jun 2018 23:31:06 +0200 Original-Received: from localhost ([::1]:39792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWq9j-0002XH-Cg for guile-bugs@m.gmane.org; Sat, 23 Jun 2018 17:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWq9X-0002Ve-MV for bug-guile@gnu.org; Sat, 23 Jun 2018 17:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWq9W-0005BP-EJ for bug-guile@gnu.org; Sat, 23 Jun 2018 17:33:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWq9W-0005B8-9q for bug-guile@gnu.org; Sat, 23 Jun 2018 17:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fWq9W-0008J1-3v for bug-guile@gnu.org; Sat, 23 Jun 2018 17:33:02 -0400 Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Sat, 23 Jun 2018 21:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 30154 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Mail-Followup-To: 30154@debbugs.gnu.org, ludo@gnu.org, arunisaac@systemreboot.net Original-Received: via spool by 30154-done@debbugs.gnu.org id=D30154.152978953931853 (code D ref 30154); Sat, 23 Jun 2018 21:33:01 +0000 Original-Received: (at 30154-done) by debbugs.gnu.org; 23 Jun 2018 21:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:33471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWq8p-0008Hh-6j for submit@debbugs.gnu.org; Sat, 23 Jun 2018 17:32:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWq8n-0008HS-Rh for 30154-done@debbugs.gnu.org; Sat, 23 Jun 2018 17:32:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWq8h-00037L-LG for 30154-done@debbugs.gnu.org; Sat, 23 Jun 2018 17:32:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWq8V-0002Y1-10; Sat, 23 Jun 2018 17:31:59 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53088 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fWq8U-0004qk-KL; Sat, 23 Jun 2018 17:31:58 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Messidor an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <20180621172718.16029-1-arunisaac@systemreboot.net> (Arun Isaac's message of "Thu, 21 Jun 2018 22:57:18 +0530") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9079 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Arun, Arun Isaac skribis: > * module/web/client.scm (request): Rename to http-request, add a > docstring, and export it. > (http-get, http-head, http-post, http-put, http-delete, http-trace, > http-options): Update docstring. > * doc/ref/web.texi (Web Client): Document http-request. Awesome! Applied with the tiny changes below. Thank you, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/ref/web.texi b/doc/ref/web.texi index e99907fe3..62b25d889 100644 --- a/doc/ref/web.texi +++ b/doc/ref/web.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 2010, 2011, 2012, 2013, 2015 Free Software Foundation, Inc. +@c Copyright (C) 2010, 2011, 2012, 2013, 2015, 2018 Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @node Web @@ -1467,7 +1467,7 @@ how to install the GnuTLS bindings for Guile,, gnutls-guile, GnuTLS-Guile}, for more information. @end deffn -@anchor{http-request}@deffn {Scheme Procedure} http-request uri arg... +@anchor{http-request}@deffn {Scheme Procedure} http-request @var{uri} @var{arg}@dots{} Connect to the server corresponding to @var{uri} and make a request over HTTP, using @var{method} (@code{GET}, @code{HEAD}, @code{POST}, etc.). @@ -1516,22 +1516,21 @@ body as a string, bytevector, #f value, or as a port (if @var{streaming?} is true). @end deffn -@deffn {Scheme Procedure} http-get uri arg... -@deffnx {Scheme Procedure} http-head uri arg... -@deffnx {Scheme Procedure} http-post uri arg... -@deffnx {Scheme Procedure} http-put uri arg... -@deffnx {Scheme Procedure} http-delete uri arg... -@deffnx {Scheme Procedure} http-trace uri arg... -@deffnx {Scheme Procedure} http-options uri arg... - +@deffn {Scheme Procedure} http-get @var{uri} @var{arg}@dots{} +@deffnx {Scheme Procedure} http-head @var{uri} @var{arg}@dots{} +@deffnx {Scheme Procedure} http-post @var{uri} @var{arg}@dots{} +@deffnx {Scheme Procedure} http-put @var{uri} @var{arg}@dots{} +@deffnx {Scheme Procedure} http-delete @var{uri} @var{arg}@dots{} +@deffnx {Scheme Procedure} http-trace @var{uri} @var{arg}@dots{} +@deffnx {Scheme Procedure} http-options @var{uri} @var{arg}@dots{} Connect to the server corresponding to @var{uri} and make a request over HTTP, using the appropriate method (@code{GET}, @code{HEAD}, @code{POST}, etc.). These procedures are variants of @code{http-request} specialized with a specific @var{method} argument, and have the same prototype: a URI -followed by an optional sequence of keyword arguments. See -@ref{http-request} for full documentation on the various keyword +followed by an optional sequence of keyword arguments. +@xref{http-request}, for full documentation on the various keyword arguments. @end deffn --=-=-=--