From 386a127ff05c9cfc51b8c423c50cdb318f2f38e2 Mon Sep 17 00:00:00 2001 From: Pieter Baauw Date: Sun, 16 Aug 2015 15:26:24 +0200 Subject: [PATCH] DOC: match several lua configuration option names to those implemented in code --- doc/configuration.txt | 2 +- doc/lua-api/index.rst | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 424b31d19..83f337d00 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1456,7 +1456,7 @@ It is possible to send email alerts when the state of servers changes. If configured email alerts are sent to each mailer that is configured in a mailers section. Email is sent to mailers using SMTP. -mailer +mailers Creates a new mailer list with the name . It is an independent section which is referenced by one or more proxies. diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index 26641baeb..8671f3e44 100644 --- a/doc/lua-api/index.rst +++ b/doc/lua-api/index.rst @@ -514,7 +514,7 @@ Channel class If the buffer cant receive more data, a 'nil' value is returned. :param class_channel channel: The manipulated Channel. - :returns: a string containig the avalaiable line or nil. + :returns: a string containing the available line or nil. .. js:function:: Channel.set(channel, string) @@ -579,21 +579,21 @@ HTTP class This class contain all the HTTP manipulation functions. -.. js:function:: HTTP.req_get_header(http) +.. js:function:: HTTP.req_get_headers(http) Returns an array containing all the request headers. :param class_http http: The related http object. :returns: array of headers. - :see: HTTP.res_get_header() + :see: HTTP.res_get_headers() -.. js:function:: HTTP.res_get_header(http) +.. js:function:: HTTP.res_get_headers(http) Returns an array containing all the response headers. :param class_http http: The related http object. :returns: array of headers. - :see: HTTP.req_get_header() + :see: HTTP.req_get_headers() .. js:function:: HTTP.req_add_header(http, name, value) @@ -661,9 +661,9 @@ HTTP class :param class_http http: The related http object. :param string name: The header name. :param string value: The header value. - :see: HTTP.req_set_header() + :see: HTTP.req_rep_header() -.. js:function:: HTTP.req_replace_header(http, name, regex, replace) +.. js:function:: HTTP.req_rep_header(http, name, regex, replace) Matches the regular expression in all occurrences of header field "name" according to "regex", and replaces them with the "replace" argument. The @@ -674,9 +674,9 @@ HTTP class :param string name: The header name. :param string regex: The match regular expression. :param string replace: The replacement value. - :see: HTTP.res_replace_header() + :see: HTTP.res_rep_header() -.. js:function:: HTTP.res_replace_header(http, name, regex, string) +.. js:function:: HTTP.res_rep_header(http, name, regex, string) Matches the regular expression in all occurrences of header field "name" according to "regex", and replaces them with the "replace" argument. The