TurtleIO.prototype.allows = function ( uri, host ) {
var self = this,
verbs = ["delete", "get", "post", "put", "patch"],
result;
result = verbs.filter( function ( i ) {
return self.allowed( i, uri, host );
} );
result = result.join( ", " ).toUpperCase().replace( "GET", "GET, HEAD, OPTIONS" );
return result;
};
Method allows
Determines which verbs are allowed against a URL
Parameters:
uri must be a String.
(URL to query)
host must be a String.
(Hostname)
Returns a String
(Allowed methods)