非侵入式框架 ResponseDetective
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/netguru/ResponseDetective
软件介绍
ResponseDetective 是一个非侵入式框架,用于拦截你的应用程序和服务器之间的传出请求和传入的反应,可用于调试。
使用:
Step 1: Register interceptors
// request InterceptingProtocol.registerRequestInterceptor(BaseInterceptor()) InterceptingProtocol.registerRequestInterceptor(JSONInterceptor()) // response InterceptingProtocol.registerResponseInterceptor(BaseInterceptor()) InterceptingProtocol.registerResponseInterceptor(JSONInterceptor()) InterceptingProtocol.registerResponseInterceptor(HTMLInterceptor()) // error InterceptingProtocol.registerErrorInterceptor(BaseInterceptor())
Step 2: Register the protocol
let configuration = NSURLSessionConfiguration.defaultSessionConfiguration() configuration.protocolClasses = [InterceptingProtocol.self] let session = NSURLSession(configuration: configuration)
let configuration = NSURLSessionConfiguration.defaultSessionConfiguration() configuration.protocolClasses = [InterceptingProtocol.self] let manager = Alamofire.Manager(configuration: configuration)
Step 3: Profit
let request = NSURLRequest(URL: NSURL(string: "http://httpbin.org/get")!) let task = session.dataTaskWithRequest(request) task.resume()
开发高质量PHP框架与应用的实际案例解析
Sebastian Bergmann / 刘文瀚、刘海燕 / 清华大学出版社 / 2012-6 / 49.00元
PHP已经成为最受欢迎的编程语言之一,这使得用PHP创建高质量、易维护的应用程序和框架比以往受到更多的青睐。通过使用来自于知名公司的真实案例研究,《开发高质量PHP框架与应用的实际案例解析》为Web软件体系结构的不同层次介绍了规划、执行以及测试自动化方面的内容,并解释了这些公司如何测量和测试软件质量。《开发高质量PHP框架与应用的实际案例解析》作者Sebastian Bergmann、Stefan......一起来看看 《开发高质量PHP框架与应用的实际案例解析》 这本书的介绍吧!
