Static variables

@:value(null)staticPROXY:{port:Int, host:String, auth:{user:String, pass:String}} = null

Constructor

new(url:String)

Variables

Methods

customRequest(post:Bool, api:Output, ?sock:Socket, ?method:String):Void

Inherited Variables

Defined by HttpBase

url:String

The url of this request. It is used only by the request() method and can be changed in order to send the same request to different target Urls.

Inherited Methods

Defined by HttpBase

dynamiconBytes(data:Bytes):Void

This method is called upon a successful request, with data containing the result String.

The intended usage is to bind it to a custom function: httpInstance.onBytes = function(data) { // handle result }

dynamiconData(data:String):Void

This method is called upon a successful request, with data containing the result String.

The intended usage is to bind it to a custom function: httpInstance.onData = function(data) { // handle result }

dynamiconError(msg:String):Void

This method is called upon a request error, with msg containing the error description.

The intended usage is to bind it to a custom function: httpInstance.onError = function(msg) { // handle error }

dynamiconStatus(status:Int):Void

This method is called upon a Http status change, with status being the new status.

The intended usage is to bind it to a custom function: httpInstance.onStatus = function(status) { // handle status }