lib/abaaso.js
function ( uri, verb ) {
		if ( string.isEmpty( uri ) || string.isEmpty( verb ) ) {
			throw new Error( label.error.invalidArguments );
		}

		uri        = utility.parse( uri ).href;
		verb       = verb.toLowerCase();
		var result = false,
		    bit    = 0;

		if ( !cache.get( uri, false ) ) {
			result = undefined;
		}
		else {
			if ( regex.del.test( verb ) ) {
				bit = 1;
			}
			else if ( regex.get_headers.test( verb ) ) {
				bit = 4;
			}
			else if ( regex.put_post.test( verb ) ) {
				bit = 2;
			}
			else if ( regex.patch.test( verb ) ) {
				bit = 8;
			}

			result = Boolean( client.permissions( uri, verb ).bit & bit );
		}

		return result;
	}
function ( uri, verb ) {
		if ( string.isEmpty( uri ) || string.isEmpty( verb ) ) {
			throw new Error( label.error.invalidArguments );
		}

		uri        = utility.parse( uri ).href;
		verb       = verb.toLowerCase();
		var result = false,
		    bit    = 0;

		if ( !cache.get( uri, false ) ) {
			result = undefined;
		}
		else {
			if ( regex.del.test( verb ) ) {
				bit = 1;
			}
			else if ( regex.get_headers.test( verb ) ) {
				bit = 4;
			}
			else if ( regex.put_post.test( verb ) ) {
				bit = 2;
			}
			else if ( regex.patch.test( verb ) ) {
				bit = 8;
			}

			result = Boolean( client.permissions( uri, verb ).bit & bit );
		}

		return result;
	}
function ( uri , verb ) { if ( string . isEmpty ( uri ) || string . isEmpty ( verb ) ) { throw new Error ( label . error . invalidArguments ) ; } uri = utility . parse ( uri ) . href ; verb = verb . toLowerCase ( ) ; var result = false , bit = 0 ; if ( ! cache . get ( uri , false ) ) { result = undefined ; } else { if ( regex . del . test ( verb ) ) { bit = 1 ; } else if ( regex . get_headers . test ( verb ) ) { bit = 4 ; } else if ( regex . put_post . test ( verb ) ) { bit = 2 ; } else if ( regex . patch . test ( verb ) ) { bit = 8 ; } result = Boolean ( client . permissions ( uri , verb ) . bit & bit ) ; } return result ; }
Quick way to see if a URI allows a specific verb

@method allows
@param  {String} uri  URI to query
@param  {String} verb HTTP verb
@return {Boolean}     `true` if the verb is allowed, undefined if unknown
Quick way to see if a URI allows a specific verb