reqwest
reqwest copied to clipboard
Readme error
Why does the README contain this example:
reqwest({
url: 'path/to/html'
, method: 'get'
, data: [ { name: 'foo', value: 'bar' }, { name: 'baz', value: 100 } ]
, success: function (resp) {
qwery('#content').html(resp)
}
})
I assume the data being sent, is serialised into the query string parameter? This could be better documented, as it is confusing seeing the method as get, with an object being sent as data.
this should be allowed. it adds the data as a query string instead of a POST body