107107| < a href ="../../../../toc2.html "> Applications</ a >
108108 ] < hr >
109109< div class ="doctools ">
110- < h1 class ="doctools_title "> rest(n) 1.6 tcllib "A framework for RESTful web services"</ h1 >
110+ < h1 class ="doctools_title "> rest(n) 1.7 tcllib "A framework for RESTful web services"</ h1 >
111111< div id ="name " class ="doctools_section "> < h2 > < a name ="name "> Name</ a > </ h2 >
112112< p > rest - define REST web APIs and call them inline or asychronously</ p >
113113</ div >
@@ -129,7 +129,7 @@ <h1 class="doctools_title">rest(n) 1.6 tcllib "A framework for RESTful web
129129< div class ="doctools_synopsis ">
130130< ul class ="doctools_requirements ">
131131< li > package require < b class ="pkgname "> Tcl 8.5 9</ b > </ li >
132- < li > package require < b class ="pkgname "> rest < span class ="opt "> ?1.6 ?</ span > </ b > </ li >
132+ < li > package require < b class ="pkgname "> rest < span class ="opt "> ?1.7 ?</ span > </ b > </ li >
133133</ ul >
134134< ul class ="doctools_syntax ">
135135< li > < a href ="#1 "> < b class ="cmd "> ::rest::simple</ b > < i class ="arg "> url</ i > < i class ="arg "> query</ i > < span class ="opt "> ?< i class ="arg "> config</ i > ?</ span > < span class ="opt "> ?< i class ="arg "> body</ i > ?</ span > </ a > </ li >
@@ -200,6 +200,8 @@ <h1 class="doctools_title">rest(n) 1.6 tcllib "A framework for RESTful web
200200< dd > </ dd >
201201< dt > < b class ="const "> method</ b > </ dt >
202202< dd > </ dd >
203+ < dt > < b class ="const "> timeout</ b > </ dt >
204+ < dd > </ dd >
203205</ dl >
204206< p > Two quick examples:</ p >
205207< p > Example 1, Yahoo Boss:</ p >
@@ -474,6 +476,10 @@ <h1 class="doctools_title">rest(n) 1.6 tcllib "A framework for RESTful web
474476when encountering an HTTP error, or not. The default is to not return
475477the response body on error.</ p >
476478< p > See < b class ="const "> callback</ b > above for more information.</ p > </ dd >
479+ < dt > < b class ="const "> timeout</ b > </ dt >
480+ < dd > < p > The value of this option determines whether to set a timeout on the HTTP
481+ call. By default, no timeout is set.</ p >
482+ < p > Timeout value is accepted in milliseconds.</ p > </ dd >
477483</ dl > </ dd >
478484</ dl >
479485</ div >
0 commit comments