http 封装模式

包含一下几个部分

  1. client 完成 sendurl , 公共签名,证书处理,公共 header 的处理
  2. Request 完成请求信息封装,也可以包含自己单独的 header
  3. Response 完成 返回信息的封装,包含 status() , Success() , Message()
  4. DTO 层,从 response 返回,完成返回的结果 response->getDTO()

saloon