ParseInterface.php 598 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * A parallel HTTP client written in pure PHP
  4. *
  5. * @author hightman <hightman@twomice.net>
  6. * @link http://hightman.cn
  7. * @copyright Copyright (c) 2015 Twomice Studio.
  8. */
  9. namespace hightman\http;
  10. /**
  11. * Interface for classes that parse the HTTP response.
  12. *
  13. * @author hightman
  14. * @since 1.0
  15. */
  16. interface ParseInterface
  17. {
  18. /**
  19. * Parse HTTP response
  20. * @param Response $res the resulting response
  21. * @param Request $req the request to be parsed
  22. * @param string $key the index key of request
  23. */
  24. public function parse(Response $res, Request $req, $key);
  25. }