lback will prevent the promise rejection.</p>
<hr>
<h3 id=typical-usage><a href=#typical-usage>Typical usage</a></h3>
<p>Here&#39;s an illustrative example of a component that uses <code>m.request</code> to retrieve some data from a server.</p>
<pre><code class=language-javascript>var Data = {
    todos: {
        list: [],
        fetch: function() {
            m.request({
                method: &quot;GET&quot;,
                url: &quot;/api/v1/todos&quot;,
            })
            .then(function(ite