Hi,
Ive found some inconsistencies in the documentation, patch attached.
Could you take a look and merge it? Thanks.
Regards,
PiBa-NL
From 007f377f637dbafc47cb77f6650e4df55e08b608 Mon Sep 17 00:00:00 2001
From: Pieter Baauw <piba.nl.dev@gmail.com>
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 424b31d..83f337d 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 <mailersect>
+mailers <mailersect>
Creates a new mailer list with the name <mailersect>. 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 26641ba..8671f3e 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
--
1.9.5.msysgit.1
Ive found some inconsistencies in the documentation, patch attached.
Could you take a look and merge it? Thanks.
Regards,
PiBa-NL
From 007f377f637dbafc47cb77f6650e4df55e08b608 Mon Sep 17 00:00:00 2001
From: Pieter Baauw <piba.nl.dev@gmail.com>
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 424b31d..83f337d 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 <mailersect>
+mailers <mailersect>
Creates a new mailer list with the name <mailersect>. 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 26641ba..8671f3e 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
--
1.9.5.msysgit.1