Docs
API
  • beforeRequest

    Function

    Handler to overwrite request on server.
    It can be used to overwrite params and headers.

    Example:

    
    data: {
      proxy: {
        beforeRequest: function(o){
    	  //o.type - hint of request.
    	  //Possible values: create/read/update/delete
    	  
    	  //o.params - server request params
    	  //o.headers - server request headers
    	  
    	  o.params.page += 1;
    	  
    	  return o;
    	}
      }
    },
    

    Default

    
    undefined