aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2018-07-13 12:52:26 -0600
committerE. Westbrook <github@westbrook.io>2019-02-23 12:23:17 -0700
commit09ff9b650c3567c91eed62f4dd571729df2dedd4 (patch)
tree8b94521c7016f51e30c476ad521c9cf7e6189ff5 /doc
parent144fa01c2f204e3b1b13c834f2644d100dba701b (diff)
downloadluasocket-09ff9b650c3567c91eed62f4dd571729df2dedd4.tar.gz
luasocket-09ff9b650c3567c91eed62f4dd571729df2dedd4.tar.bz2
luasocket-09ff9b650c3567c91eed62f4dd571729df2dedd4.zip
http.lua: allow override of hard-coded 5 max redirects
Diffstat (limited to 'doc')
-rw-r--r--doc/http.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/http.html b/doc/http.html
index 3b7a8b1..78f785a 100644
--- a/doc/http.html
+++ b/doc/http.html
@@ -135,7 +135,8 @@ http.<b>request{</b><br>
135&nbsp;&nbsp;[step = <i>LTN12 pump step</i>,]<br> 135&nbsp;&nbsp;[step = <i>LTN12 pump step</i>,]<br>
136&nbsp;&nbsp;[proxy = <i>string</i>,]<br> 136&nbsp;&nbsp;[proxy = <i>string</i>,]<br>
137&nbsp;&nbsp;[redirect = <i>boolean</i>,]<br> 137&nbsp;&nbsp;[redirect = <i>boolean</i>,]<br>
138&nbsp;&nbsp;[create = <i>function</i>]<br> 138&nbsp;&nbsp;[create = <i>function</i>,]<br>
139&nbsp;&nbsp;[maxredirects = <i>number</i>]<br>
139<b>}</b> 140<b>}</b>
140</p> 141</p>
141 142
@@ -185,6 +186,7 @@ Defaults to the LTN12 <tt>pump.step</tt> function.
185function from automatically following 301 or 302 server redirect messages; 186function from automatically following 301 or 302 server redirect messages;
186<li><tt>create</tt>: An optional function to be used instead of 187<li><tt>create</tt>: An optional function to be used instead of
187<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created. 188<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
189<li><tt>maxredirects</tt>: An optional number specifying the maximum number of redirects to follow. Defaults to <tt>5</tt> if not specified. A boolean <tt>false</tt> value means no maximum (unlimited).
188</ul> 190</ul>
189 191
190<p class=return> 192<p class=return>
@@ -324,8 +326,8 @@ r, c = http.request {
324</p> 326</p>
325<p> 327<p>
326<small> 328<small>
327Last modified by Diego Nehab on <br> 329Last modified by Eric Westbrook on <br>
328Thu Apr 20 00:25:26 EDT 2006 330Sat Feb 23 19:09:42 UTC 2019
329</small> 331</small>
330</p> 332</p>
331</center> 333</center>