1
0

Http.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * This file is part of GameQ.
  4. *
  5. * GameQ is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GameQ is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. namespace GameQ\Protocols;
  19. use GameQ\Protocol;
  20. /**
  21. * Class Http
  22. *
  23. * Generic HTTP protocol class. Useful for making http based requests
  24. *
  25. * @package GameQ\Protocols
  26. * @author Austin Bischoff <[email protected]>
  27. */
  28. abstract class Http extends Protocol
  29. {
  30. /**
  31. * The query protocol used to make the call
  32. *
  33. * @type string
  34. */
  35. protected $protocol = 'http';
  36. /**
  37. * String name of this protocol class
  38. *
  39. * @type string
  40. */
  41. protected $name = 'http';
  42. /**
  43. * Longer string name of this protocol class
  44. *
  45. * @type string
  46. */
  47. protected $name_long = "Generic HTTP protocol";
  48. /**
  49. * Http protocol is TCP
  50. *
  51. * @var string
  52. */
  53. protected $transport = self::TRANSPORT_TCP;
  54. /**
  55. * The client join link
  56. *
  57. * @type string
  58. */
  59. protected $join_link = null;
  60. }