Discussion:
http-request procedure missing or not exported from web client
Zelphir Kaltstahl
2018-11-13 21:50:11 UTC
Permalink
Hi!

I recently noticed, that the procedure ~http-request~
(https://www.gnu.org/software/guile/manual/html_node/Web-Client.html)
does not seem to be available when I do:

~~~

(use-modules (web client))
(http-request ...)

~~~

However, the specialised procedures like ~http-get~ are available.

Are the docs wrong or is my Guile (2.2.3) too old or did I misunderstand
the docs?

Regards,

Zelphir
Thomas Morley
2018-11-13 22:57:41 UTC
Permalink
Am Di., 13. Nov. 2018 um 22:50 Uhr schrieb Zelphir Kaltstahl
Post by Zelphir Kaltstahl
Hi!
I recently noticed, that the procedure ~http-request~
(https://www.gnu.org/software/guile/manual/html_node/Web-Client.html)
~~~
(use-modules (web client))
(http-request ...)
~~~
However, the specialised procedures like ~http-get~ are available.
Are the docs wrong or is my Guile (2.2.3) too old or did I misunderstand
the docs?
Regards,
Zelphir
FWIW, doing in a guile-prompt with guile-2.2.4:

$ ./guile/meta/guile
GNU Guile 2.2.4.9-71f536
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (use-modules (web client))
scheme@(guile-user)> http-request
$1 = #<procedure http-request (uri #:key body port method version
keep-alive? headers decode-body? streaming? request)>

Don't have 2.2.3 any more, though.

Cheers,
Harm
Zelphir Kaltstahl
2018-11-13 23:04:06 UTC
Permalink
Thank you! I will probably update soon then : )
Post by Thomas Morley
Am Di., 13. Nov. 2018 um 22:50 Uhr schrieb Zelphir Kaltstahl
Post by Zelphir Kaltstahl
Hi!
I recently noticed, that the procedure ~http-request~
(https://www.gnu.org/software/guile/manual/html_node/Web-Client.html)
~~~
(use-modules (web client))
(http-request ...)
~~~
However, the specialised procedures like ~http-get~ are available.
Are the docs wrong or is my Guile (2.2.3) too old or did I misunderstand
the docs?
Regards,
Zelphir
$ ./guile/meta/guile
GNU Guile 2.2.4.9-71f536
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
$1 = #<procedure http-request (uri #:key body port method version
keep-alive? headers decode-body? streaming? request)>
Don't have 2.2.3 any more, though.
Cheers,
Harm
Mark H Weaver
2018-11-14 03:20:10 UTC
Permalink
Post by Zelphir Kaltstahl
I recently noticed, that the procedure ~http-request~
(https://www.gnu.org/software/guile/manual/html_node/Web-Client.html)
~~~
(use-modules (web client))
(http-request ...)
~~~
However, the specialised procedures like ~http-get~ are available.
Are the docs wrong or is my Guile (2.2.3) too old or did I misunderstand
the docs?
Guile-2.2.4 is the first version to export 'http-request'.

Mark

Loading...