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: | |
19: | namespace GameQ\Protocols; |
20: | |
21: | use GameQ\Protocol; |
22: | |
23: | /** |
24: | * Class Http |
25: | * |
26: | * Generic HTTP protocol class. Useful for making http based requests |
27: | * |
28: | * @package GameQ\Protocols |
29: | * @author Austin Bischoff <austin@codebeard.com> |
30: | */ |
31: | abstract class Http extends Protocol |
32: | { |
33: | /** |
34: | * The query protocol used to make the call |
35: | * |
36: | * @var string |
37: | */ |
38: | protected $protocol = 'http'; |
39: | |
40: | /** |
41: | * String name of this protocol class |
42: | * |
43: | * @var string |
44: | */ |
45: | protected $name = 'http'; |
46: | |
47: | /** |
48: | * Longer string name of this protocol class |
49: | * |
50: | * @var string |
51: | */ |
52: | protected $name_long = "Generic HTTP protocol"; |
53: | |
54: | /** |
55: | * Http protocol is TCP |
56: | * |
57: | * @var string |
58: | */ |
59: | protected $transport = self::TRANSPORT_TCP; |
60: | } |
61: |