packages/okam-core/src/na/request.js
function fetchData(url, options) {
    let {method = 'GET'} = options || {};
    method = method.toUpperCase();

    return httpApi.request(Object.assign({url}, options, {method}));
}
function fetchData(url, options) {
    let {method = 'GET'} = options || {};
    method = method.toUpperCase();

    return httpApi.request(Object.assign({url}, options, {method}));
}
Fetch data by the given url and options

@param {string} url the url to fetch
@param {Object=} options the fetch options
@return {Promise}