More...
|
| Builder (TAjaxProxy component) |
|
virtual TBuilder | Headers (Action< ParameterCollection > action) |
| Any headers to add to the Ajax request. Defaults to undefined. More...
|
|
virtual TBuilder | Json (bool json) |
| Send params as JSON object More...
|
|
virtual TBuilder | Xml (bool xml) |
| Send params as XML object More...
|
|
virtual TBuilder | ActionMethods (Action< CRUDMethods > action) |
| Mapping of action name to HTTP request method. In the basic AjaxProxy these are set to 'GET' for 'read' actions and 'POST' for 'create', 'update' and 'destroy' actions. The Ext.data.proxy.Rest maps these to the correct RESTful methods. More...
|
|
virtual TBuilder | GetMethod (Action< JFunction > action) |
| Returns the HTTP method name for a given request. By default this returns based on a lookup on actionMethods. More...
|
|
virtual TBuilder | Password (string password) |
| Most oData feeds require basic HTTP authentication. This configuration allows you to specify the password. More...
|
|
virtual TBuilder | UseDefaultXhrHeader (bool useDefaultXhrHeader) |
| Set this to false to not send the default Xhr header (X-Requested-With) with every request. This should be set to false when making CORS (cross-domain) requests. Defaults to true. More...
|
|
virtual TBuilder | Username (string username) |
| Most oData feeds require basic HTTP authentication. This configuration allows you to specify the username.. More...
|
|
virtual TBuilder | WithCredentials (bool withCredentials) |
| This configuration is sometimes necessary when using cross-origin resource sharing. Defaults to false. More...
|
|
| Builder () |
|
| Builder (AjaxProxy component) |
|
| Builder (AjaxProxy.Config config) |
|
◆ Builder() [1/4]
◆ Builder() [2/4]
◆ Builder() [3/4]
◆ Builder() [4/4]
◆ ActionMethods()
Mapping of action name to HTTP request method. In the basic AjaxProxy these are set to 'GET' for 'read' actions and 'POST' for 'create', 'update' and 'destroy' actions. The Ext.data.proxy.Rest maps these to the correct RESTful methods.
- Parameters
-
action | The action delegate |
- Returns
- An instance of TBuilder
◆ GetMethod()
Returns the HTTP method name for a given request. By default this returns based on a lookup on actionMethods.
- Parameters
-
action | The action delegate |
- Returns
- An instance of TBuilder
◆ Headers()
Any headers to add to the Ajax request. Defaults to undefined.
- Parameters
-
action | The action delegate |
- Returns
- An instance of TBuilder
◆ Json()
Send params as JSON object
◆ operator Builder()
◆ Password()
Most oData feeds require basic HTTP authentication. This configuration allows you to specify the password.
◆ UseDefaultXhrHeader()
Set this to false to not send the default Xhr header (X-Requested-With) with every request. This should be set to false when making CORS (cross-domain) requests. Defaults to true.
◆ Username()
Most oData feeds require basic HTTP authentication. This configuration allows you to specify the username..
◆ WithCredentials()
This configuration is sometimes necessary when using cross-origin resource sharing. Defaults to false.
◆ Xml()
Send params as XML object
The documentation for this class was generated from the following file: