Request.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/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. *
  21. * Simple class that represents a Request that will be made by any {@link Ext.data.proxy.Server} subclass.
  22. * All this class does is standardize the representation of a Request as used by any ServerProxy subclass,
  23. * it does not contain any actual logic or perform the request itself.
  24. */
  25. Ext.define('Ext.data.Request', {
  26. <span id='Ext-data-Request-cfg-action'> /**
  27. </span> * @cfg {String} action
  28. * The name of the action this Request represents. Usually one of 'create', 'read', 'update' or 'destroy'.
  29. */
  30. action: undefined,
  31. <span id='Ext-data-Request-cfg-params'> /**
  32. </span> * @cfg {Object} params
  33. * HTTP request params. The Proxy and its Writer have access to and can modify this object.
  34. */
  35. params: undefined,
  36. <span id='Ext-data-Request-cfg-method'> /**
  37. </span> * @cfg {String} method
  38. * The HTTP method to use on this Request. Should be one of 'GET', 'POST', 'PUT' or 'DELETE'.
  39. */
  40. method: 'GET',
  41. <span id='Ext-data-Request-cfg-url'> /**
  42. </span> * @cfg {String} url
  43. * The url to access on this Request
  44. */
  45. url: undefined,
  46. <span id='Ext-data-Request-method-constructor'> /**
  47. </span> * Creates the Request object.
  48. * @param {Object} [config] Config object.
  49. */
  50. constructor: function(config) {
  51. Ext.apply(this, config);
  52. }
  53. });</pre>
  54. </body>
  55. </html>