Std.App.Bind
21 public declarations
- bind
&Std.Http.Server.Route.Request -> &Array[Std.App.Bind.Wanted] -> Std.App.Bind.BoundWhat a request carried, checked against what was wanted.
- binding
&Std.Http.Server.Route.Request -> &Array[Std.App.Bind.Wanted] -> Result[Std.App.Bind.Bound, Std.Http.Response]The bound values, or the refusal, in one step for the common handler.
- bound
&Std.App.Bind.Bound -> BoolWhether everything wanted was there and was what it had to be.
- Bound
What a request carried, once it has been read and checked.
- carriesDocument
&Std.Http.Server.Route.Request -> BoolWhether a request carries a document.
- carriesForm
&Std.Http.Server.Route.Request -> BoolWhether a request carries a form.
- count
&Std.App.Bind.Bound -> Str -> Option[Int]One bound field as a count, which may not.
- fromDocument
Str -> &Array[Std.Validate.Rule] -> Std.App.Bind.WantedA field read from a document body.
- fromForm
Str -> &Array[Std.Validate.Rule] -> Std.App.Bind.WantedA field read from a form body.
- fromPath
Str -> &Array[Std.Validate.Rule] -> Std.App.Bind.WantedA field read from the path.
- fromQuery
Str -> &Array[Std.Validate.Rule] -> Std.App.Bind.WantedA field read from the query.
- malformed
Str -> Std.Http.ResponseThe refusal a request of the wrong shape entirely receives.
- mediaType
&Std.Http.Server.Route.Request -> StrThe media type a request states, without whatever follows it.
- optional
&Std.App.Bind.Bound -> Str -> Option[Str]One bound field, absent when it carried nothing.
- refusal
&Std.App.Bind.Bound -> Std.Http.ResponseThe refusal a failed binding becomes.
- reportOf
&Std.App.Bind.Bound -> Std.Validate.ReportWhat was wrong, if anything.
- Source
Where a field is read from.
- text
&Std.App.Bind.Bound -> Str -> StrOne bound field as text.
- truth
&Std.App.Bind.Bound -> Str -> BoolOne bound field as a truth.
- Wanted
One field: what it is called, where it comes from, and what it must be.
- whole
&Std.App.Bind.Bound -> Str -> Option[Int]One bound field as a whole number, which may be below nothing.
