From fec98300ec9af6c8b5f3120a60f217983c451076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 2 May 2018 11:35:26 +0200 Subject: Cowboy 2.4.0 --- .../2.4/manual/cowboy_constraints/index.html | 222 +++++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 docs/en/cowboy/2.4/manual/cowboy_constraints/index.html (limited to 'docs/en/cowboy/2.4/manual/cowboy_constraints/index.html') diff --git a/docs/en/cowboy/2.4/manual/cowboy_constraints/index.html b/docs/en/cowboy/2.4/manual/cowboy_constraints/index.html new file mode 100644 index 00000000..cb1baf31 --- /dev/null +++ b/docs/en/cowboy/2.4/manual/cowboy_constraints/index.html @@ -0,0 +1,222 @@ + + + + + + + + + + + + Nine Nines: cowboy_constraints(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

cowboy_constraints(3)

+ +
+

Name

+
+

cowboy_constraints - Constraints

+
+
+
+

Description

+
+

The module cowboy_constraints defines the built-in +constraints in Cowboy and provides an interface for +manipulating these constraints.

+

Constraints are functions that define what type of +input is allowed. They are used throughout Cowboy, +from the router to query strings to cookies.

+
+
+
+

Exports

+
+

Built-in constraints:

+
+
+
+
+

Types

+
+
+

constraint()

+
+
+
constraint() :: int | nonempty | fun()
+

A constraint function.

+

The atom constraints are built-in, see the corresponding +function in the exports list above.

+
+
+

reason()

+
+
+
reason() :: {constraint(), Reason, Value}
+
+Reason :: any()
+Value  :: any()
+

Reason for the constraint failure.

+

It includes the constraint function in question, +a machine-readable error reason and the value that +made the constraint fail.

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

+ Cowboy + 2.4 + Function Reference + +

+ + + +

Navigation

+ +

Version select

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