@@ 99-106 (lines=8) @@ | ||
96 | /** |
|
97 | * {@inheritDoc} |
|
98 | */ |
|
99 | public function post($path, $body = null, array $headers = array()) |
|
100 | { |
|
101 | if (!isset($headers['Content-Type'])) { |
|
102 | $headers['Content-Type'] = 'application/x-www-form-urlencoded'; |
|
103 | } |
|
104 | ||
105 | return $this->request($path, $body, 'POST', $headers); |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * {@inheritDoc} |
|
@@ 111-118 (lines=8) @@ | ||
108 | /** |
|
109 | * {@inheritDoc} |
|
110 | */ |
|
111 | public function patch($path, $body = null, array $headers = array()) |
|
112 | { |
|
113 | if (!isset($headers['Content-Type'])) { |
|
114 | $headers['Content-Type'] = 'application/x-www-form-urlencoded'; |
|
115 | } |
|
116 | ||
117 | return $this->request($path, $body, 'PATCH', $headers); |
|
118 | } |
|
119 | ||
120 | /** |
|
121 | * {@inheritDoc} |
|
@@ 131-138 (lines=8) @@ | ||
128 | /** |
|
129 | * {@inheritDoc} |
|
130 | */ |
|
131 | public function put($path, $body, array $headers = array()) |
|
132 | { |
|
133 | if (!isset($headers['Content-Type'])) { |
|
134 | $headers['Content-Type'] = 'application/x-www-form-urlencoded'; |
|
135 | } |
|
136 | ||
137 | return $this->request($path, $body, 'PUT', $headers); |
|
138 | } |
|
139 | ||
140 | /** |
|
141 | * {@inheritDoc} |