Class that defines the base http request to be used with http manager
package |
Default |
---|
__construct(\org\turbocommons\src\main\php\managers\httpmanager\string $url, \org\turbocommons\src\main\php\managers\httpmanager\int $timeout)
\org\turbocommons\src\main\php\managers\httpmanager\string
\org\turbocommons\src\main\php\managers\httpmanager\int
__get(string $name) : void
string
The property name
__set(string $name, string $value) : void
string
The property name
string
The property value
url :
timeout :
If set to 0, no value will be specifically defined, so the httpmanager default will be used.
successCallback :
The callback function must have the following signature: (response: string) => void
errorCallback :
The callback function must have the following signature: (errorMsg:string, errorCode:number) => void
errorMsg will contain the error text and errorCode will contain the numeric error http value
finallyCallback :
(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