如何使用CocoaHTTPServer实现特殊响应?

时间:2014-07-15 10:44:35

标签: encryption httpresponse http-content-length cocoahttpserver

Device ask HTTPServer http_://127.0.0.1:xx/source.mp3

HTTPServer ask RealServer http_://xxxx.com/source.mp3

HTTPServer获取RealServer的响应,处理响应,例如

decryption(maybe CHANGE THE DATA LENGTH)

HTTPServer response Device the decrypted data

HTTP请求头的内容长度可能会发生变化 我不知道如何实现这种情况。(http响应体的前n个字节可以在解密时计算实际长度,'n'也由响应体计算)

谢谢!

0 个答案:

没有答案