Packageorg.apache.flex.net
Classpublic final class URLRequest
InheritanceURLRequest Inheritance Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The URLRequest class captures all of the information in a single HTTP request. URLRequest objects are passed to the load() methods of the URLStream, and URLLoader classes, and to other loading operations, to initiate URL downloads.



Public Properties
 PropertyDefined By
  contentType : String = application/x-www-form-urlencoded
Controls the HTTP form submission method.
URLRequest
  data : Object
An object containing data to be transmitted with the URL request.
URLRequest
  method : String = GET
Controls the HTTP form submission method.
URLRequest
  requestHeaders : Array
URLRequest
  url : String
The URL to be requested.
URLRequest
Public Methods
 MethodDefined By
  
URLRequest(url:String = null)
URLRequest
Property Detail
contentTypeproperty
public var contentType:String = application/x-www-form-urlencoded

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Controls the HTTP form submission method.

dataproperty 
public var data:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

An object containing data to be transmitted with the URL request.

methodproperty 
public var method:String = GET

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Controls the HTTP form submission method.

requestHeadersproperty 
requestHeaders:Array


Implementation
    public function get requestHeaders():Array
    public function set requestHeaders(value:Array):void
urlproperty 
public var url:String

Language Version : ActionScript 3.0
Product Version : FlexJS 0.7.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The URL to be requested.

Constructor Detail
URLRequest()Constructor
public function URLRequest(url:String = null)



Parameters
url:String (default = null)