new RequestLog()
Create a new instance of RequestLog
- Source:
- Usage/RequestLog.js, line 37
- See:
-
- ProjectApp
- Resource
Properties:
Name | Type | Description |
---|---|---|
request |
Object | the objects request |
links |
Array | Contains the array of links |
Example
Load RequestLog
var r = new RequestLog();
r.load({
period:"current",
onSuccess:function(){
alert(JSON.stringify(r.request));
}
});
Methods
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- Usage/RequestLog.js, line 59
- See:
-
load(options)
-
Override Resource load method.
Parameters:
Name Type Description options
object options to be used during the call
Properties
Name Type Argument Description period
string the period to load onSuccess
Resource~onSuccess a callback function called in case of a success onFailure
Resource~onFailure <optional>
a callback function called in case of a failure baseUrl
String <optional>
base URL. If not set the current base URL will be used - Source:
- Usage/RequestLog.js, line 73
- See:
-
loadPreset()
-
Overrides Resource's loadPreset method.
- Source:
- Usage/RequestLog.js, line 53
- See: