Swift的HTTP存根
用法
更改(或使用)Interceptor
中的URLSession
来发出请求
UserRepository.shared.session = Interceptor.session
向Interceptor
添加存根
let user = AuthUser(id: 1, token: "sjzfbsfhjzk")
Interceptor.add(stub: try PathStub(path: "/users/login", object: user, method: "POST"))