Changeset 15380 in project


Ignore:
Timestamp:
08/09/09 18:23:22 (10 years ago)
Author:
certainty
Message:

Changes applied for certainty (82.82.131.238) through svnwiki:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/uri-dispatch

    r15379 r15380  
    2020The dispatch-algorithm is implemented as follows:
    2121
    22 ('''Note''' Although not explicitly stated here the algorithm performs a whitelist-check on any procedure before it is invoked. See '''enable-checks''' and '''whitelist!''')
     22('''Note''' Although not explicitly stated here the algorithm performs a whitelist-check on any procedure before it is invoked. See '''enable-whitelisting''' and '''whitelist!''')
    2323
    2424* The path is empty. It checks if '''default-dispatch-target''' is bound to a procedure.
     
    4141<procedure>(whitelist! DEFINITION)</procedure>
    4242Though nice for development it is not advisable to allow anybody out there to invoke abritary procedures of your application.
    43 So you might want to '''enable-checks''' in production and whitelist only those modules and/or procedures you really want
     43So you might want to '''enable-whitelisting''' in production and whitelist only those modules and/or procedures you really want
    4444to be callable from the outside. Whis procedure expects a list that defines the procedure/modules
    4545you want to whitelist. If a procedure is requested that does exist but is not whitelisted '''dispatch-error''' is invoked.
    46 You have basically three possibilities to perform whitelisting, all of which can be combined.
     46You have basically two possibilities to perform whitelisting, all of which can be combined.
    4747
    48481) whitelist procedures outside modules
     
    5252<pre>(whitelist! '((module my-module my-module2))</pre>
    5353
     54
     55In the near future you will have the following possibilities as well:
     56
    54573) whitelist specific procedures inside a module
    5558<pre>(whitelist! '((module-name procedure1 procedure2)))</pre>
    5659
    57 As noted above you can mix those possibilities
    58 
    59 <pre>(whitelist! '(proc1 proc2 proc3 (module foo-mod bar-mod) (baz-module proc4 proc5)))</pre>
    60 
    61 It is planned to implement some keywords that allow easier use of this procedure.
     60It is also planned to implement some keywords that allow easier use of this procedure.
    6261
    6362
     
    6867'''NOTE''' dispatch-error is also invoked if the requested handler exists but is not whitelisted.
    6968
    70 <parameter>enable-checks</parameter>
     69<parameter>enable-whitelisting</parameter>
    7170
    7271If set to #t then whitelist-checks are enabled. Defaults to #f.
    73 
    7472<parameter>default-dispatch-target</parameter>
    7573
Note: See TracChangeset for help on using the changeset viewer.