Closed mekras closed 8 years ago
Don't really understand the purpose of such builder ? Why not using a response factory or directly the response ?
@joelwurtz, we have response factory which can do this?
The purpose is reuse of implementation independent code. It was discussed in original PR. Parsing headers is a common task for HTTP client (similar code in socket and curl clients). Also it can be used by third-party libs. For example I need to create HttpMessage instances from HTTP dumps and so can use this functionality.
Hum didn't read well the code, my bad ^^
LGTM :+1:
client-tools repo was removed, so I recreated PR for ResponseBuilder here.
Not sure about spec file because I'm not familiar with PhpSpec.