HTTPManagerPostRequest

Extends \org\turbocommons\src\main\php\managers\httpmanager\HTTPManagerBaseRequest

Class that defines a POST http request, to be used by HttpManager

package

Default

Methods

__construct

__construct(\org\turbocommons\src\main\php\managers\httpmanager\string $url, \org\turbocommons\src\main\php\managers\httpmanager\int $timeout) 
inherited

Arguments

$url

\org\turbocommons\src\main\php\managers\httpmanager\string

$timeout

\org\turbocommons\src\main\php\managers\httpmanager\int

Protection to prevent accessing undefined properties to this class

__get(string $name) : void
inherited

Arguments

$name

string

The property name

Protection to prevent creating extra properties to this class

__set(string $name, string $value) : void
inherited

Arguments

$name

string

The property name

$value

string

The property value

Properties

A list of key / value pairs that will be used as parameters for this request

parameters : array|\org\turbocommons\src\main\php\model\HashMapObject

The url that will be called as part of this request

url : 
inherited

Type(s)

Defines how much miliseconds will the http requests wait before failing with a timeout.

timeout : 
inherited

If set to 0, no value will be specifically defined, so the httpmanager default will be used.

Type(s)

A method to be executed inmediately after the request execution finishes successfully.

successCallback : 
inherited

The callback function must have the following signature: (response: string) => void

Type(s)

A method to be executed if an error happens to the request execution.

errorCallback : 
inherited

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

Type(s)

A method to be executed always when the request finishes, even successfully or with an error.

finallyCallback : 
inherited

(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

Type(s)