Updated request docs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -33,7 +33,10 @@ OpenLayers.Request = {
|
||||
/**
|
||||
* APIMethod: issue
|
||||
* Create a new XMLHttpRequest object, open it, set any headers, bind
|
||||
* a callback to done state, and send any data.
|
||||
* a callback to done state, and send any data. It is recommended that
|
||||
* you use one <GET>, <POST>, <PUT>, <DELETE>, <OPTIONS>, or <HEAD>.
|
||||
* This method is only documented to provide detail on the configuration
|
||||
* options available to all request methods.
|
||||
*
|
||||
* Parameters:
|
||||
* config - {Object} Object containing properties for configuring the
|
||||
@@ -53,12 +56,20 @@ OpenLayers.Request = {
|
||||
* <OpenLayers.ProxyHost>.
|
||||
* params - {Object} Any key:value pairs to be appended to the
|
||||
* url as a query string. Assumes url doesn't already include a query
|
||||
* string or hash. Parameter values that are arrays will be
|
||||
* string or hash. Typically, this is only appropriate for <GET>
|
||||
* requests where the query string will be appended to the url.
|
||||
* Parameter values that are arrays will be
|
||||
* concatenated with a comma (note that this goes against form-encoding)
|
||||
* as is done with <OpenLayers.Util.getParameterString>.
|
||||
* headers - {Object} Object with header:value pairs to be set on
|
||||
* the request.
|
||||
* data - {Object} Any data to send with the request.
|
||||
* data - {String | Document} Optional data to send with the request.
|
||||
* Typically, this is only used with <POST> and <PUT> requests.
|
||||
* Make sure to provide the appropriate "Content-Type" header for your
|
||||
* data. For <POST> and <PUT> requests, the content type defaults to
|
||||
* "application-xml". If your data is a different content type, or
|
||||
* if you are using a different HTTP method, set the "Content-Type"
|
||||
* header to match your data type.
|
||||
* callback - {Function} Function to call when request is done.
|
||||
* To determine if the request failed, check request.status (200
|
||||
* indicates success).
|
||||
|
||||
Reference in New Issue
Block a user