Initial support for AIR

This commit is contained in:
Joshua Granick
2017-08-24 12:50:13 -07:00
parent f2a8092834
commit 9991e99fee
186 changed files with 2590 additions and 68 deletions

View File

@@ -0,0 +1,25 @@
package flash.net;
@:final extern class URLRequest {
#if air
var authenticate : Bool;
var cacheResponse : Bool;
#end
var contentType : String;
var data : Dynamic;
var digest : String;
#if air
var followRedirects : Bool;
var idleTimeout : Float;
var manageCookies : Bool;
#end
var method : String;
var requestHeaders : Array<URLRequestHeader>;
var url : String;
#if air
var useCache : Bool;
var userAgent : String;
#end
function new(?url : String) : Void;
function useRedirectedURL(sourceRequest : URLRequest, wholeURL : Bool = false, ?pattern : Dynamic, ?replace : String) : Void;
}