lib/abaaso.js
function ( uri ) {
		var cached = cache.get( uri, false ),
		    bit    = !cached ? 0 : cached.permission,
		    result = {allows: [], bit: bit, map: {partial: 8, read: 4, write: 2, "delete": 1, unknown: 0}};

		if ( bit & 1) {
			result.allows.push( "DELETE" );
		}

		if ( bit & 2) {
			result.allows.push( "POST" );
			result.allows.push( "PUT" );
		}

		if ( bit & 4) {
			result.allows.push( "GET" );
		}

		if ( bit & 8) {
			result.allows.push( "PATCH" );
		}

		return result;
	}
function ( uri ) {
		var cached = cache.get( uri, false ),
		    bit    = !cached ? 0 : cached.permission,
		    result = {allows: [], bit: bit, map: {partial: 8, read: 4, write: 2, "delete": 1, unknown: 0}};

		if ( bit & 1) {
			result.allows.push( "DELETE" );
		}

		if ( bit & 2) {
			result.allows.push( "POST" );
			result.allows.push( "PUT" );
		}

		if ( bit & 4) {
			result.allows.push( "GET" );
		}

		if ( bit & 8) {
			result.allows.push( "PATCH" );
		}

		return result;
	}
function ( uri ) { var cached = cache . get ( uri , false ) , bit = ! cached ? 0 : cached . permission , result = { allows : [ ] , bit : bit , map : { partial : 8 , read : 4 , write : 2 , "delete" : 1 , unknown : 0 } } ; if ( bit & 1 ) { result . allows . push ( "DELETE" ) ; } if ( bit & 2 ) { result . allows . push ( "POST" ) ; result . allows . push ( "PUT" ) ; } if ( bit & 4 ) { result . allows . push ( "GET" ) ; } if ( bit & 8 ) { result . allows . push ( "PATCH" ) ; } return result ; }
Returns the permission of the cached URI

@method permissions
@param  {String} uri URI to query
@return {Object}     Contains an Array of available commands, the permission bit and a map
Returns the permission of the cached URI