Reactive-Extensions / RxJS-DOM

HTML DOM Bindings for the Reactive Extensions for JavaScript
http://reactivex.io
Other
438 stars 101 forks source link

How to set Content-Type: application/json in my POST call? #132

Open rbadapanda opened 7 years ago

whiteinge commented 7 years ago
Rx.DOM.ajax({
    method: 'POST',
    url: 'http://localhost:58042/path',
    body: JSON.stringify({foo: 'Foo!'}),
    headers: {
        'Content-Type': 'application/json',
    },
});