Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9aefed999f
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.565 kb
component extends="taffy.core.api"{
this.name = "Taffy_testSuite";
public void function configureTaffy() output="false" {
enableDashboard(true);
setUnhandledPaths('/taffy/tests/someFolder');
setGlobalHeaders({"x-foo-globalheader"="snafu"});
setDefaultRepresentationClass("customJsonRepresentation");
}
public function onTaffyRequest(verb, cfc, requestArguments, mimeExt, headers){
if (structKeyExists(arguments.requestArguments, "refuse") and arguments.requestArguments.refuse){
return newRepresentation().withStatus(405);
}
return true;
}
}
Jump to Line
Something went wrong with that request. Please try again.