whenHEAD(url, [headers], [keys]); Creates a new backend definition for HEAD requests. For more info see when().
whenRoute(method, url); Creates a new backend definition that compares only with the requested route.
whenGET(url, [headers], [keys]); Creates a new backend definition for GET requests. For more info see when().
whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when().
whenPOST(url, [data], [headers], [keys]); Creates a new backend definition for POST requests. For more info see when()
whenDELETE(url, [headers], [keys]); Creates a new backend definition for DELETE requests. For more info see when().
whenJSONP(url, [keys]); Creates a new backend definition for JSONP requests. For more info see when().
when(method, url, [data], [headers], [keys]); Creates a new backend definition. Parameters
whenPATCH(url, [data], [headers], [keys]); Creates a new backend definition for PATCH requests. For more info see when()