 
 
 
-	_options:	require './methods/options'
-	_get:		require './methods/get'
-	_post:		require './methods/post'
-	_delete:	require './methods/delete'
+	onOPTIONS:	onOPTIONS
+	onGET:		onGET
+	onPOST:		onPOST
+	onDELETE:	onDELETE
 
-	_methods: {}
+	Context:	Context
 
 
 
-	cors: false
+	dir:		null
+	name:		null
+	log:		null
+	cors:		false
 
 
 
-	init: (dir, name, logger) ->
+	init: (dir, name, log) ->
 		if not dir? then throw new Error 'Missing `dir` parameter'
 		@dir = path.normalize dir
 		@relative = path.join '.', path.relative process.cwd(), @dir

http =			require 'http'
url =			require 'url'
accepts =		require 'accepts'





	listen: (port, callback) ->
		@server.listen port, () =>
			@log.info "Serving #{@relative} as '#{@name}' on port #{port}."
			callback?()
		return this

	close: (callback) ->
		@server.close () ->
			@log.info "Stopped serving '#{@name}'."
			callback?()
		return this

