

## Example

```js
    send("/pic.jpg").on("download-progress",function(total){ 
        console.log(total)
    }).then(res =>{
        res.blob();
        res.text();
        res.json()// for json data
    }).catch(err=>{
        console.log(err)
    });
```




```js
var fd = new FormData();
fd.append("username" , "example@text.com");

send("/pic.jpg", fd).on("download-progress",function(total){ 
        console.log(total)
}).then(res =>{
        res.blob();
        res.text();
        res.json()// for json data
}).catch(err=>{
    console.log(err)
});
```



```js
var fd = new FormData();
fd.append("username" , "example@text.com");

send("/login", { body : fd}).on("download-progress",function(total){ 
        console.log(total)
}).then(res =>{
        res.blob();
        res.text();
        res.json()// for json data
}).catch(err=>{
    console.log(err)
});
```




```js
var fd = new FormData();
fd.append("username" , "example@text.com");

send("/pic.jpg", { body : fd } , function (err , result){
    if(err) throw err;

    result.blob();
    result.text();
    result.json();// for json data
}).on("download-progress",function(total){ 
    console.log(total)
})
```


```js
var fd = new FormData();
fd.append("name" , 1);

send("/", fd , function (err , result){
    console.log(result.json())
}).on("download-progress", function(total){ 
    console.log(total);
}).on("upload-progress" , function(total){
    console.log(total);
}).on("error" ,function (error){
    throw error;
});

```js
