nl_tokens: Builder for generic HTTP Request Handler
pl_tokens: function do_create_req ( config , routes ) { routes = routes || { } ; var version = routes . <mask> || { } ; if ( version && ( typeof version === 'object' ) ) { } else { version = { 'self' : routes . version || config . pkg . version } ; } if ( ! version . api ) { version . api = api_config . pkg . version ; } routes . version = version ; var router = new RequestRouter ( routes ) ; var req_counter = 0 ; /* Inner Request handler */ function do_req ( req , res ) { req_counter += 1 ; return router . resolve ( req , res ) ; } // do_req return do_req ; }