Which structure will be useful/better?
(PHP)
Structure A
+ httpLib/
| . Index.php / Factory
| . API.php
| . _Exception.php
| + Response/
| | . Interface.php
| | . ...
| + Request/
| | . Interface.php
| | . ...
Structure B
+ httpLib/
| . Response.php
| . Request.php
| . API.php
| . _Exception.php
| + Client/
| | . Interface.php
| | . Socket.php
| | . Stream.php
| | . cURL.php
...
(I did not find a better title)
Thanks.
The first structure is the best.
With it you can better separate the requests and responses.
The structures of the requests and responses are well defined and not in a single class