reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

browser asynchronous http requests

Results 100 reqwest issues
Sort by recently updated
recently updated
newest added

Currently, if a json object is sent as data, it will url-encode the object. If the server expects JSON, this will kill the request. Reqwest includes the option to 'processData...

I'm trying to get the server response in 400 status code request, but the second variable is undefined ``` reqwest({ url: 'exampleurl', method: 'post', data: {} }) .then((resp) => {...

Hi is there a way to force the body to stay as a json object? It looks quite strange with this: ``` var id = JSON.stringify(id) console.log(id); request({ url: TREATMENT_URL,...

expose traditional option

when use ``` async: false ``` it cannot enter success or fail function。

So that not to waste time thinking that there is, but there wasn't

I want to add the client language in every ajax request. I have tried : ``` reqwest.ajaxSetup({ beforeSend: function( xhr ){ xhr.setRequestHeader("Accept-Language", lng); } }); ``` and ``` reqwest.ajaxSetup({ headers:...

If you have to set some custom headers on every request like CSRF tokens, it is tedious to specify them on every request. Allow `.ajaxSetup` to predefined them once, so...

Reqwest's `then` implementation is faulty. It should be wrapped in a `try/catch` and pass the error onto the promise's `catch` method, [per the spec](https://promisesaplus.com/#point-40). For comparison, here's the correct behavior...

``` reqwest( { url: 'http://firmware.duoxieyun.com/sw/android/cold-chain-platform', type: 'json', method: 'get' } ) ``` ERROR: Response for preflight has invalid HTTP status code 404? But I use ``` $.ajax({ url: 'http://firmware.duoxieyun.com/sw/android/cold-chain-platform', type:...