aboutsummaryrefslogtreecommitdiff
path: root/docs/http.html
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-03-15 12:55:02 +0100
committerGitHub <noreply@github.com>2024-03-15 12:55:02 +0100
commit93eef5015e0dfe8d24071dd036f9a7f02160abeb (patch)
treee29da398ce6b83a71f25f574de6d0ff58f488012 /docs/http.html
parent23241717bf91c4317065828bedafd05ebb97c1ef (diff)
downloadluasocket-93eef5015e0dfe8d24071dd036f9a7f02160abeb.tar.gz
luasocket-93eef5015e0dfe8d24071dd036f9a7f02160abeb.tar.bz2
luasocket-93eef5015e0dfe8d24071dd036f9a7f02160abeb.zip
chore(docs): update LTN12 links (#428)
Diffstat (limited to 'docs/http.html')
-rw-r--r--docs/http.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/http.html b/docs/http.html
index 52b8a30..c6423ba 100644
--- a/docs/http.html
+++ b/docs/http.html
@@ -52,7 +52,7 @@ implementation conforms to the HTTP/1.1 standard,
52The module exports functions that provide HTTP functionality in different 52The module exports functions that provide HTTP functionality in different
53levels of abstraction. From the simple 53levels of abstraction. From the simple
54string oriented requests, through generic 54string oriented requests, through generic
55<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> based, down to even lower-level if you bother to look through the source code. 55<a href="https://github.com/lunarmodules/luasocket/blob/master/ltn012.md">LTN12</a> based, down to even lower-level if you bother to look through the source code.
56</p> 56</p>
57 57
58<p> 58<p>
@@ -144,7 +144,7 @@ http.<b>request{</b><br>
144The request function has two forms. The simple form downloads 144The request function has two forms. The simple form downloads
145a URL using the <tt>GET</tt> or <tt>POST</tt> method and is based 145a URL using the <tt>GET</tt> or <tt>POST</tt> method and is based
146on strings. The generic form performs any HTTP method and is 146on strings. The generic form performs any HTTP method and is
147<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> based. 147<a href="https://github.com/lunarmodules/luasocket/blob/master/ltn012.md">LTN12</a> based.
148</p> 148</p>
149 149
150<p class="parameters"> 150<p class="parameters">
@@ -158,7 +158,7 @@ in the <tt>url</tt>. Otherwise, it performs a <tt>GET</tt> in the
158<p class="parameters"> 158<p class="parameters">
159If the first argument is instead a table, the most important fields are 159If the first argument is instead a table, the most important fields are
160the <tt>url</tt> and the <em>simple</em> 160the <tt>url</tt> and the <em>simple</em>
161<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> 161<a href="https://github.com/lunarmodules/luasocket/blob/master/ltn012.md">LTN12</a>
162<tt>sink</tt> that will receive the downloaded content. 162<tt>sink</tt> that will receive the downloaded content.
163Any part of the <tt>url</tt> can be overridden by including 163Any part of the <tt>url</tt> can be overridden by including
164the appropriate field in the request table. 164the appropriate field in the request table.
@@ -172,13 +172,13 @@ following:
172<li><tt>method</tt>: The HTTP request method. Defaults to "GET";</li> 172<li><tt>method</tt>: The HTTP request method. Defaults to "GET";</li>
173<li><tt>headers</tt>: Any additional HTTP headers to send with the request;</li> 173<li><tt>headers</tt>: Any additional HTTP headers to send with the request;</li>
174<li><tt>source</tt>: <em>simple</em> 174<li><tt>source</tt>: <em>simple</em>
175<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> 175<a href="https://github.com/lunarmodules/luasocket/blob/master/ltn012.md">LTN12</a>
176source to provide the request body. If there 176source to provide the request body. If there
177is a body, you need to provide an appropriate "<tt>content-length</tt>" 177is a body, you need to provide an appropriate "<tt>content-length</tt>"
178request header field, or the function will attempt to send the body as 178request header field, or the function will attempt to send the body as
179"<tt>chunked</tt>" (something few servers support). Defaults to the empty source;</li> 179"<tt>chunked</tt>" (something few servers support). Defaults to the empty source;</li>
180<li><tt>step</tt>: 180<li><tt>step</tt>:
181<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> 181<a href="https://github.com/lunarmodules/luasocket/blob/master/ltn012.md">LTN12</a>
182pump step function used to move data. 182pump step function used to move data.
183Defaults to the LTN12 <tt>pump.step</tt> function.</li> 183Defaults to the LTN12 <tt>pump.step</tt> function.</li>
184<li><tt>proxy</tt>: The URL of a proxy server to use. Defaults to no proxy;</li> 184<li><tt>proxy</tt>: The URL of a proxy server to use. Defaults to no proxy;</li>