AsyncHttp

com.akifox.asynchttp.AsyncHttp (Class)

##AsyncHttp

This is the main class of the library

NOTE:* It is used by most of the library to keep common functions and variables

@author Simone Cingano (yupswing) Akifox Studio

@repo akifox-asynchttp repository

@licence MIT Licence

Static Members

logEnabled: Bool

Force log to console

(default set to true on -debug)


logErrorEnabled: Bool

errorSafe: Bool

Deprecated and ignored (will be dropped in 0.5) #TODO


userAgent: String

The HTTP User Agent string sent on request (default:'akifox-asynchttp')

NOTE: This is a global setting that will apply to every request

WARNING: This option is not used on Flash and JS (due to platforms limitations)


maxRedirections: Int

The maximum number of redirection allowed per request

NOTE: This is a global setting that will apply to every request

WARNING: This option is not used on Flash and JS (due to platforms limitations)

Instance Members

Private Members


UID_CHARS: String

callback(request: HttpRequest, time: Float, url: URL, headers: HttpHeaders, status: Int, content: haxe.io.Bytes, ?error: String = ""): Void
Name Type Default
request HttpRequest
time Float
url URL
headers HttpHeaders
status Int
content haxe.io.Bytes
error String ""

callbackProgress(request: HttpRequest, loaded: Int, total: Int): Void
Name Type
request HttpRequest
loaded Int
total Int

httpViaSocket_Threaded(): Void

httpViaSocketConnect(url: URL, request: HttpRequest): com.akifox.asynchttp._AsyncHttp.Requester
Name Type
url URL
request HttpRequest
Returns
com.akifox.asynchttp._AsyncHttp.Requester

httpViaSocket(request: HttpRequest): Void
Name Type
request HttpRequest

elapsedTime(start: Float): Float
Name Type
start Float
Returns
Float