精细结构

目录

hahoorequest

A HTTP request abstract library, use other http request libraries in one way. Isomorphic request to work in Node or in the browser. For example React isomorphism, the same code for the server and the browser.

一个统一 http 中间件(?)
而且网上没有太多的信息,不太好判断相关内容。

https://www.npmjs.com/package/hahoorequest

又好像是对 whatwg-fetch 的封装(利于前端同构(isomorphism))

同构是指同开发一个可以跑在不同的平台上的程序。例如开发一段 js 代码可以同时被基于 node.js 开发的 web server 和浏览器使用。本文中我们就要聊聊这种场景下,为什么以及怎么样开发一个同构的 web 应用。