diff options
Diffstat (limited to 'docs/http.html')
| -rw-r--r-- | docs/http.html | 10 |
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, | |||
| 52 | The module exports functions that provide HTTP functionality in different | 52 | The module exports functions that provide HTTP functionality in different |
| 53 | levels of abstraction. From the simple | 53 | levels of abstraction. From the simple |
| 54 | string oriented requests, through generic | 54 | string 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> | |||
| 144 | The request function has two forms. The simple form downloads | 144 | The request function has two forms. The simple form downloads |
| 145 | a URL using the <tt>GET</tt> or <tt>POST</tt> method and is based | 145 | a URL using the <tt>GET</tt> or <tt>POST</tt> method and is based |
| 146 | on strings. The generic form performs any HTTP method and is | 146 | on 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"> |
| 159 | If the first argument is instead a table, the most important fields are | 159 | If the first argument is instead a table, the most important fields are |
| 160 | the <tt>url</tt> and the <em>simple</em> | 160 | the <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. |
| 163 | Any part of the <tt>url</tt> can be overridden by including | 163 | Any part of the <tt>url</tt> can be overridden by including |
| 164 | the appropriate field in the request table. | 164 | the 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> |
| 176 | source to provide the request body. If there | 176 | source to provide the request body. If there |
| 177 | is a body, you need to provide an appropriate "<tt>content-length</tt>" | 177 | is a body, you need to provide an appropriate "<tt>content-length</tt>" |
| 178 | request header field, or the function will attempt to send the body as | 178 | request 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> |
| 182 | pump step function used to move data. | 182 | pump step function used to move data. |
| 183 | Defaults to the LTN12 <tt>pump.step</tt> function.</li> | 183 | Defaults 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> |
