|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the Ivory Http Adapter package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) Eric GELOEN <[email protected]> |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please read the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace Ivory\HttpAdapter; |
|
13
|
|
|
|
|
14
|
|
|
use Ivory\HttpAdapter\Message\MessageFactoryInterface; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* @author GeLo <[email protected]> |
|
18
|
|
|
*/ |
|
19
|
|
|
interface ConfigurationInterface |
|
20
|
|
|
{ |
|
21
|
|
|
const ENCODING_TYPE_URLENCODED = 'application/x-www-form-urlencoded'; |
|
22
|
|
|
const ENCODING_TYPE_FORMDATA = 'multipart/form-data'; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @return MessageFactoryInterface |
|
26
|
|
|
*/ |
|
27
|
|
|
public function getMessageFactory(); |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @param MessageFactoryInterface $messageFactory |
|
31
|
|
|
*/ |
|
32
|
|
|
public function setMessageFactory(MessageFactoryInterface $messageFactory); |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @return string |
|
36
|
|
|
*/ |
|
37
|
|
|
public function getProtocolVersion(); |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @param string $protocolVersion |
|
41
|
|
|
*/ |
|
42
|
|
|
public function setProtocolVersion($protocolVersion); |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @return bool |
|
46
|
|
|
*/ |
|
47
|
|
|
public function getKeepAlive(); |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @param bool $keepAlive |
|
51
|
|
|
*/ |
|
52
|
|
|
public function setKeepAlive($keepAlive); |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @return bool |
|
56
|
|
|
*/ |
|
57
|
|
|
public function hasEncodingType(); |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @return string|null |
|
61
|
|
|
*/ |
|
62
|
|
|
public function getEncodingType(); |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @param string|null $encodingType |
|
66
|
|
|
*/ |
|
67
|
|
|
public function setEncodingType($encodingType); |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @return string |
|
71
|
|
|
*/ |
|
72
|
|
|
public function getBoundary(); |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @param string $boundary |
|
76
|
|
|
*/ |
|
77
|
|
|
public function setBoundary($boundary); |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @return float |
|
81
|
|
|
*/ |
|
82
|
|
|
public function getTimeout(); |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @param float $timeout |
|
86
|
|
|
*/ |
|
87
|
|
|
public function setTimeout($timeout); |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @return string |
|
91
|
|
|
*/ |
|
92
|
|
|
public function getUserAgent(); |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* @param string $userAgent |
|
96
|
|
|
*/ |
|
97
|
|
|
public function setUserAgent($userAgent); |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* @return bool |
|
101
|
|
|
*/ |
|
102
|
|
|
public function hasBaseUri(); |
|
103
|
|
|
|
|
104
|
|
|
/** |
|
105
|
|
|
* @return string |
|
106
|
|
|
*/ |
|
107
|
|
|
public function getBaseUri(); |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* @param string $baseUri |
|
111
|
|
|
*/ |
|
112
|
|
|
public function setBaseUri($baseUri); |
|
113
|
|
|
} |
|
114
|
|
|
|