Class that defines a POST http request, to be used by HttpManager
A list of key / value pairs that will be sent as POST parameters for the request.
String is the default format for these values, so if any of the parameters specified here is not a string, it will be passed through a JSON encoder to obtaion the string that will be sent to the request.
Defines how much miliseconds will the http requests wait before failing with a timeout. If set to 0, no value will be specifically defined, so the httpmanager default will be used.
The url that will be called as part of this request
A method to be executed if an error happens to the request execution. The callback function must have the following signature: (errorMsg:string, errorCode:number, response: string) => void
errorMsg will contain the error text, errorCode will contain the numeric error http value and response will contain the main request response body
A method to be executed always when the request finishes, even successfully or with an error. (This will be the very last method to be executed, allways after success or error callbacks).
The callback function must have the following signature: () => void
A method to be executed inmediately after the request execution finishes successfully (200 ok code). The callback function must have the following signature: (response: string) => void
Generated using TypeDoc