Protein v0.16.0 Protein.ServerAPI View Source
functions for handling service calls.
Link to this section Summary
Functions
Processes a request by calling appropriate service
Link to this section Functions
Link to this function
process(request) View Source
Processes a request by calling appropriate service.
Under normal circumstances, the server is invoked by traffic from the transport layer and not directly. Still, you can make it process a request by bypassing the transport and invoking this function directly. It takes the request payload (that would normally come via transport layer) as argument and returns response payload (that would normally get returned via transport layer) or nil (for non-responding services).