OpenLayers OpenLayers

Changeset 6366

Show
Ignore:
Timestamp:
02/25/08 18:37:21 (11 months ago)
Author:
tschaub
Message:

shouting about rfc 2616

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/tschaub/request/lib/OpenLayers/Ajax.js

    r6349 r6366  
    7272    } 
    7373     
    74     return OpenLayers.Request.get({url: uri, callback: complete}); 
     74    return OpenLayers.Request.GET({url: uri, callback: complete}); 
    7575}; 
    7676 
  • sandbox/tschaub/request/lib/OpenLayers/Format/KML.js

    r6357 r6366  
    250250     */ 
    251251    fetchLink: function(href) { 
    252         var request = OpenLayers.Request.get({url: href, async: false}); 
     252        var request = OpenLayers.Request.GET({url: href, async: false}); 
    253253        if (request) { 
    254254            return request.responseText; 
  • sandbox/tschaub/request/lib/OpenLayers/Request.js

    r6361 r6366  
    105105     
    106106    /** 
    107      * APIMethod: get 
     107     * APIMethod: GET 
    108108     * Send an HTTP GET request.  Additional configuration properties are 
    109109     *     documented in the <issue> method, with the method property set 
     
    117117     * {XMLHttpRequest} Request object. 
    118118     */ 
    119     get: function(config) { 
     119    GET: function(config) { 
    120120        config = OpenLayers.Util.extend(config, {method: "GET"}); 
    121121        return OpenLayers.Request.issue(config); 
     
    123123     
    124124    /** 
    125      * APIMethod: post 
     125     * APIMethod: POST 
    126126     * Send a POST request.  Additional configuration properties are 
    127127     *     documented in the <issue> method, with the method property set 
     
    137137     * {XMLHttpRequest} Request object. 
    138138     */ 
    139     post: function(config) { 
     139    POST: function(config) { 
    140140        config = OpenLayers.Util.extend(config, {method: "POST"}); 
    141141        // set content type to application/xml if it isn't already set 
     
    148148     
    149149    /** 
    150      * APIMethod: put 
     150     * APIMethod: PUT 
    151151     * Send an HTTP PUT request.  Additional configuration properties are 
    152152     *     documented in the <issue> method, with the method property set 
     
    162162     * {XMLHttpRequest} Request object. 
    163163     */ 
    164     put: function(config) { 
     164    PUT: function(config) { 
    165165        config = OpenLayers.Util.extend(config, {method: "PUT"}); 
    166166        // set content type to application/xml if it isn't already set 
     
    173173     
    174174    /** 
    175      * APIMethod: delete 
     175     * APIMethod: DELETE 
    176176     * Send an HTTP DELETE request.  Additional configuration properties are 
    177177     *     documented in the <issue> method, with the method property set 
     
    185185     * {XMLHttpRequest} Request object. 
    186186     */ 
    187     "delete": function(config) { 
     187    DELETE: function(config) { 
    188188        config = OpenLayers.Util.extend(config, {method: "DELETE"}); 
    189189        return OpenLayers.Request.issue(config); 
     
    191191   
    192192    /** 
    193      * APIMethod: head 
     193     * APIMethod: HEAD 
    194194     * Send an HTTP HEAD request.  Additional configuration properties are 
    195195     *     documented in the <issue> method, with the method property set 
     
    203203     * {XMLHttpRequest} Request object. 
    204204     */ 
    205     head: function(config) { 
     205    HEAD: function(config) { 
    206206        config = OpenLayers.Util.extend(config, {method: "HEAD"}); 
    207207        return OpenLayers.Request.issue(config); 
     
    209209     
    210210    /** 
    211      * APIMethod: options 
     211     * APIMethod: OPTIONS 
    212212     * Send an HTTP OPTIONS request.  Additional configuration properties are 
    213213     *     documented in the <issue> method, with the method property set 
     
    221221     * {XMLHttpRequest} Request object. 
    222222     */ 
    223     options: function(config) { 
     223    OPTIONS: function(config) { 
    224224        config = OpenLayers.Util.extend(config, {method: "OPTIONS"}); 
    225225        return OpenLayers.Request.issue(config); 
  • sandbox/tschaub/request/tests/manual/ajax.html

    r6349 r6366  
    66        var url = "ajax.txt"; 
    77        function sendSynchronous(){ 
    8             var request = OpenLayers.Request.get({ 
     8            var request = OpenLayers.Request.GET({ 
    99                url: url, 
    1010                async: false, 
     
    1616        } 
    1717        function sendAsynchronous(){ 
    18             var request = OpenLayers.Request.get({ 
     18            var request = OpenLayers.Request.GET({ 
    1919                url: url, 
    2020                callback: function() { 
     
    2525        } 
    2626        function sendAndAbort(){ 
    27             var request = OpenLayers.Request.get({ 
     27            var request = OpenLayers.Request.GET({ 
    2828                url: url, 
    2929                callback: function() {