Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / source / Request.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5   <title>The source code</title>
6   <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7   <script type="text/javascript" src="../prettify/prettify.js"></script>
8   <style type="text/css">
9     .highlight { display: block; background-color: #ddd; }
10   </style>
11   <script type="text/javascript">
12     function highlight() {
13       document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
14     }
15   </script>
16 </head>
17 <body onload="prettyPrint(); highlight();">
18   <pre class="prettyprint lang-js"><span id='Ext-data-Request'>/**
19 </span> * @author Ed Spencer
20  * @class Ext.data.Request
21  * @extends Object
22  * 
23  * &lt;p&gt;Simple class that represents a Request that will be made by any {@link Ext.data.proxy.Server} subclass.
24  * All this class does is standardize the representation of a Request as used by any ServerProxy subclass,
25  * it does not contain any actual logic or perform the request itself.&lt;/p&gt;
26  * 
27  */
28 Ext.define('Ext.data.Request', {
29 <span id='Ext-data-Request-cfg-action'>    /**
30 </span>     * @cfg {String} action The name of the action this Request represents. Usually one of 'create', 'read', 'update' or 'destroy'
31      */
32     action: undefined,
33     
34 <span id='Ext-data-Request-cfg-params'>    /**
35 </span>     * @cfg {Object} params HTTP request params. The Proxy and its Writer have access to and can modify this object.
36      */
37     params: undefined,
38     
39 <span id='Ext-data-Request-cfg-method'>    /**
40 </span>     * @cfg {String} method The HTTP method to use on this Request (defaults to 'GET'). Should be one of 'GET', 'POST', 'PUT' or 'DELETE'
41      */
42     method: 'GET',
43     
44 <span id='Ext-data-Request-cfg-url'>    /**
45 </span>     * @cfg {String} url The url to access on this Request
46      */
47     url: undefined,
48
49 <span id='Ext-data-Request-method-constructor'>    /**
50 </span>     * Creates the Request object.
51      * @param {Object} config (optional) Config object.
52      */
53     constructor: function(config) {
54         Ext.apply(this, config);
55     }
56 });</pre>
57 </body>
58 </html>