1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-10 07:50:24 +02:00

Document and export `declare-opaque-header!'

* module/web/http.scm (declare-opaque-header!): Add docstring. New export.
* doc/ref/web.texi (HTTP): Add documentation.
This commit is contained in:
Ian Price 2012-05-08 00:18:59 +01:00 committed by Andy Wingo
parent 312e79f8d5
commit 64ead01db7
2 changed files with 8 additions and 0 deletions

View file

@ -398,6 +398,11 @@ HTTP stack like this:
(display (inet-ntoa ip) port)))
@end example
@deffn {Scheme Procedure} declare-opaque-header! name
A specialised version of @code{declare-header!} for the case in which
you want a header's value to be returned/written ``as-is''.
@end deffn
@deffn {Scheme Procedure} valid-header? sym val
Return a true value iff @var{val} is a valid Scheme value for the header
with name @var{sym}.