Copyright © Yariv Sadan 2006-2007
Authors: Yariv Sadan (yarivsblog@gmail.com) [web site: http://yarivsblog.com].
This module provides functions for getting and setting values of a Yaws 'arg' record. You can use these functions instead of using the record access syntax, and without having to include yaws_api.hrl.
Most functions have two forms: one for getting the value of a field and one for setting it. Getters accept the record as a parameter and return the value of its field. Setters take two parameters -- the record and the new value -- and return a new record with the modified value.| add_all_to_opaque/2 | applies add_to_opaque for all values in the list. |
| add_to_opaque/2 | Equivalent to Arg#arg{opaque = [Val | A#arg.opaque]}. |
| appmod_prepath/1 | |
| appmod_prepath/2 | |
| appmoddata/1 | |
| appmoddata/2 | |
| clidata/1 | |
| clidata/2 | |
| client_ip_port/1 | |
| client_ip_port/2 | |
| clisock/1 | |
| clisock/2 | |
| cont/1 | |
| cont/2 | |
| docroot/1 | |
| docroot/2 | |
| fullpath/1 | |
| fullpath/2 | |
| get_opaque_val/2 | Return the value corrsponding to the Key in the opaque proplist. |
| headers/1 | |
| headers/2 | |
| method/1 | |
| new/0 | Create a new 'arg' record. |
| opaque/1 | |
| opaque/2 | |
| pathinfo/1 | |
| pathinfo/2 | |
| pid/1 | |
| pid/2 | |
| querydata/1 | |
| querydata/2 | |
| req/1 | |
| req/2 | |
| server_path/1 | |
| server_path/2 | |
| state/1 | |
| state/2 |
add_all_to_opaque(A::arg(), Vals::[term()]) -> arg()
applies add_to_opaque for all values in the list
Equivalent to Arg#arg{opaque = [Val | A#arg.opaque]}.
get_opaque_val(A::arg(), Key::term()) -> term() | undefined
Return the value corrsponding to the Key in the opaque proplist. If the key isn't found, return 'undefined'.
Create a new 'arg' record.