| Did you know ... | Search Documentation: |
| http_parameters.pl |
http_parameters(+Request, ?Parms) is det
http_parameters(+Request, ?Parms, :Options) is detcall(Goal, A, Declarations).The attribute_declarations hook allows sharing the declaration of attribute-properties between many http_parameters/3 calls. In this form, the requested attribute takes only one argument and the options are acquired by calling the hook. For example:
...,
http_parameters(Request,
[ sex(Sex)
],
[ attribute_declarations(http_param)
]),
...
http_param(sex, [ oneof(male, female),
description('Sex of the person')
]).
http_convert_parameters(+Data, ?Params) is det
http_convert_parameters(+Data, ?Params, :AttrDecl) is det
http_parameters(Request, Params) :-
http_read_data(Request, Data, []),
http_convert_parameters(Data, Params).
http_convert_parameter(+Options, +FieldName, +ValueIn, -ValueOut) is detThe following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
http_parameters(+Request, ?Parms) is det
http_parameters(+Request, ?Parms, :Options) is detcall(Goal, A, Declarations).The attribute_declarations hook allows sharing the declaration of attribute-properties between many http_parameters/3 calls. In this form, the requested attribute takes only one argument and the options are acquired by calling the hook. For example:
...,
http_parameters(Request,
[ sex(Sex)
],
[ attribute_declarations(http_param)
]),
...
http_param(sex, [ oneof(male, female),
description('Sex of the person')
]).
http_convert_parameters(+Data, ?Params) is det
http_convert_parameters(+Data, ?Params, :AttrDecl) is det
http_parameters(Request, Params) :-
http_read_data(Request, Data, []),
http_convert_parameters(Data, Params).