From 607cc2b93a1848b13a589a7ed6ed84a783451352 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Fri, 15 Mar 2024 12:28:54 +0100 Subject: [PATCH] chore(docs): update LTN12 links --- docs/ftp.html | 10 +++++----- docs/http.html | 10 +++++----- docs/mime.html | 2 +- docs/smtp.html | 14 +++++++------- docs/socket.html | 4 ++-- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/ftp.html b/docs/ftp.html index 7f7da2e4..2c57fc81 100644 --- a/docs/ftp.html +++ b/docs/ftp.html @@ -55,7 +55,7 @@

FTP

To really benefit from this module, a good understanding of - + LTN012, Filters sources and sinks is necessary.

@@ -122,7 +122,7 @@

FTP

argument or path (argument takes precedence). Host is the server to connect to. Sink is the simple -LTN12 +LTN12 sink that will receive the downloaded data. Argument or path give the target path to the resource in the server. The optional arguments are the following: @@ -136,7 +136,7 @@

FTP

  • type: The transfer mode. Can take values "i" or "a". Defaults to whatever is the server default;
  • step: -LTN12 +LTN12 pump step function used to pass data from the server to the sink. Defaults to the LTN12 pump.step function;
  • create: An optional function to be used instead of @@ -206,7 +206,7 @@

    FTP

    argument or path (argument takes precedence). Host is the server to connect to. Source is the simple -LTN12 +LTN12 source that will provide the contents to be uploaded. Argument or path give the target path to the resource in the server. The @@ -221,7 +221,7 @@

    FTP

  • type: The transfer mode. Can take values "i" or "a". Defaults to whatever is the server default;
  • step: -LTN12 +LTN12 pump step function used to pass data from the server to the sink. Defaults to the LTN12 pump.step function;
  • create: An optional function to be used instead of diff --git a/docs/http.html b/docs/http.html index 52b8a30f..c6423baa 100644 --- a/docs/http.html +++ b/docs/http.html @@ -52,7 +52,7 @@

    HTTP

    The module exports functions that provide HTTP functionality in different levels of abstraction. From the simple string oriented requests, through generic -LTN12 based, down to even lower-level if you bother to look through the source code. +LTN12 based, down to even lower-level if you bother to look through the source code.

    @@ -144,7 +144,7 @@

    HTTP

    The request function has two forms. The simple form downloads a URL using the GET or POST method and is based on strings. The generic form performs any HTTP method and is -LTN12 based. +LTN12 based.

    @@ -158,7 +158,7 @@

    HTTP

    If the first argument is instead a table, the most important fields are the url and the simple -LTN12 +LTN12 sink that will receive the downloaded content. Any part of the url can be overridden by including the appropriate field in the request table. @@ -172,13 +172,13 @@

    HTTP

  • method: The HTTP request method. Defaults to "GET";
  • headers: Any additional HTTP headers to send with the request;
  • source: simple -LTN12 +LTN12 source to provide the request body. If there is a body, you need to provide an appropriate "content-length" request header field, or the function will attempt to send the body as "chunked" (something few servers support). Defaults to the empty source;
  • step: -LTN12 +LTN12 pump step function used to move data. Defaults to the LTN12 pump.step function.
  • proxy: The URL of a proxy server to use. Defaults to no proxy;
  • diff --git a/docs/mime.html b/docs/mime.html index ff4d8e87..600357b9 100644 --- a/docs/mime.html +++ b/docs/mime.html @@ -54,7 +54,7 @@

    MIME

    All functionality provided by the MIME module follows the ideas presented in - + LTN012, Filters sources and sinks.

    diff --git a/docs/smtp.html b/docs/smtp.html index 787d0b10..23e31841 100644 --- a/docs/smtp.html +++ b/docs/smtp.html @@ -57,7 +57,7 @@

    SMTP

    in RFC 2046.

    In the description below, good understanding of LTN012, Filters +href="https://github.com/lunarmodules/luasocket/blob/master/ltn012.md"> LTN012, Filters sources and sinks and the MIME module is assumed. In fact, the SMTP module was the main reason for their creation.

    @@ -122,7 +122,7 @@

    SMTP

    Returns a simple -LTN12 source that sends an SMTP message body, possibly multipart (arbitrarily deep). +LTN12 source that sends an SMTP message body, possibly multipart (arbitrarily deep).

    @@ -155,7 +155,7 @@

    SMTP

    For a simple message, all that is needed is a set of headers and the body. The message body can be given as a string or as a simple -LTN12 +LTN12 source. For multipart messages, the body is a table that recursively defines each part as an independent message, plus an optional preamble and epilogue. @@ -163,7 +163,7 @@

    SMTP

    The function returns a simple -LTN12 +LTN12 source that produces the message contents as defined by mesgt, chunk by chunk. Hopefully, the following @@ -264,7 +264,7 @@

    SMTP

    address, or a string in case there is just one recipient. The contents of the message are given by a simple -LTN12 +LTN12 source. Several arguments are optional: