From b5d4cb91f80c833795a2d87050c3674bb7aecdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 3 Oct 2017 13:39:41 +0200 Subject: Update Hugo, docs --- .../manual/cowboy_constraints.nonempty/index.html | 224 +++++++++++++++++++++ 1 file changed, 224 insertions(+) create mode 100644 docs/en/cowboy/2.0/manual/cowboy_constraints.nonempty/index.html (limited to 'docs/en/cowboy/2.0/manual/cowboy_constraints.nonempty') diff --git a/docs/en/cowboy/2.0/manual/cowboy_constraints.nonempty/index.html b/docs/en/cowboy/2.0/manual/cowboy_constraints.nonempty/index.html new file mode 100644 index 00000000..b833f1b1 --- /dev/null +++ b/docs/en/cowboy/2.0/manual/cowboy_constraints.nonempty/index.html @@ -0,0 +1,224 @@ + + + + + + + + + + + + Nine Nines: cowboy_constraints:nonempty(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

cowboy_constraints:nonempty(3)

+ +
+

Name

+
+

cowboy_constraints:nonempty - Non-empty constraint

+
+
+
+

Description

+
+

Constraint functions implement a number of different operations.

+
+
+
nonempty(forward | reverse, <<>>) -> {error, empty}
+

Reject empty values.

+
+
+
nonempty(forward | reverse, Bin) -> {ok, Bin}
+
+Bin :: binary()
+

Accept any other binary values.

+
+
+
nonempty(format_error, Error) -> HumanReadable
+
+Error         :: {empty, Bin}
+HumanReadable :: iolist()
+

Generate a human-readable error message.

+
+
+
+

Arguments

+
+

Arguments vary depending on the operation. Constraint +functions always take the operation type as first argument, +and the value as second argument.

+
+
+
+

Return value

+
+

The return value varies depending on the operation.

+
+
+
+

Changelog

+
+
    +
  • +

    +2.0: Interface modified to allow for a variety of operations. +

    +
  • +
  • +

    +1.0: Constraint introduced. +

    +
  • +
+
+
+
+

Examples

+
+

This function is not meant to be called directly.

+
+
+ + + + + + +
+ +
+ + +

+ Cowboy + 2.0 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+ + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3