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: BoolForce log to console
(default set to true on -debug)
logErrorEnabled: BoolerrorSafe: BoolDeprecated and ignored (will be dropped in 0.5) #TODO
userAgent: StringThe 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: IntThe 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
CONTENT_KIND_MATCHES: Array<com.akifox.asynchttp._AsyncHttp.ContentKindMatch>UID_CHARS: Stringcallback(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(): VoidhttpViaSocketConnect(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 |
| Name | Type |
|---|---|
start |
Float |
| Returns |
|---|
| Float |