Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
URLRequest

Package | org.apache.flex.net
Class | public final class URLRequest
Inheritance | URLRequest 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

| Property | Defined 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

| Method | Defined By
--- | --- | ---
|  | URLRequest(url:String = null) | URLRequest

Property Detail

contentType | property

`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.

data | property |

`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.

method | property |

`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.

requestHeaders | property |

`requestHeaders:Array`

Implementation
`public function get requestHeaders():Array`
`public function set requestHeaders(value:Array):void`

url | property |

`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`)``

Mon Sep 5 2016, 07:19 AM -07:00