Changeset 40063 in project


Ignore:
Timestamp:
04/29/21 21:51:41 (2 weeks ago)
Author:
rgherdt
Message:

Update description of handling functions; add 0.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/json-rpc

    r40053 r40063  
    3232<parameter>(json-rpc-handler-table)</parameter>
    3333
    34 An association list mapping method names (*strings*) to functions that get an (unmarshalled) scheme object as input. These handlers must return a scheme object that is *mappable* to a JSON string. See [[medea]].
     34An association list mapping method names ({{string}s}) to functions that get an (unmarshalled) scheme object as input. These handlers must return one of the following:
     35- a scheme object that is 'mappable' to a JSON string, which becomes the {result} content of the response. See [[medea]] for the mapping between JSON and Scheme objects.
     36- #f, if no response is expected. This is the way to handle notifications.
    3537
    3638<procedure>(json-rpc-call in-port out-port method params)</procedure>
     
    126128=== Version History
    127129
     130* 0.2.0  Handlers returning #f now don't generate responses (instead of "null" as before). Fix json-rpc-read
    128131* 0.1.1 Expose invalid-request error type
    129132* 0.1   Initial version.
Note: See TracChangeset for help on using the changeset viewer.