摘要:
In a proper unit test we want to isolate external dependencies as much as possible to guarantee a reliable test outcome. Http calls represent such ext 阅读全文
posted @ 2018-02-14 21:20
Zhentiw
阅读(565)
评论(0)
推荐(0)
摘要:
In some cases your application might need to upload large amounts of data, such as files. Obviously for a good UX we should provide the user some feed 阅读全文
posted @ 2018-02-14 21:13
Zhentiw
阅读(251)
评论(0)
推荐(0)
摘要:
By default the new Angular Http client (introduced in v4.3.1) uses JSON as the data format for communicating with the backend API. However, there migh 阅读全文
posted @ 2018-02-14 21:06
Zhentiw
阅读(371)
评论(0)
推荐(0)
摘要:
By default the response body doesn’t contain all the data that might be needed in your app. Your server might return some special header which you hav 阅读全文
posted @ 2018-02-14 21:03
Zhentiw
阅读(521)
评论(0)
推荐(0)
摘要:
Besides sending (or requesting) the actual data to the server API, there’s also often the need to send further metadata that helps the server to corre 阅读全文
posted @ 2018-02-14 20:55
Zhentiw
阅读(239)
评论(0)
推荐(0)
摘要:
When communicating with some backend API, data travels over the network using the HTTP protocol. As such, failures may occur, be it on our own device 阅读全文
posted @ 2018-02-14 20:46
Zhentiw
阅读(348)
评论(0)
推荐(0)
摘要:
Obviously in a real world application we do not only fetch data from the backend, but we also send data to be stored permanently on the server side. T 阅读全文
posted @ 2018-02-14 20:41
Zhentiw
阅读(368)
评论(0)
推荐(0)

浙公网安备 33010602011771号