@@ 53-62 (lines=10) @@ | ||
50 | * |
|
51 | * @return ResponseInterface |
|
52 | */ |
|
53 | protected function post( |
|
54 | string $uri, |
|
55 | array $data = [], |
|
56 | array $headers = [], |
|
57 | array $cookies = [] |
|
58 | ): ResponseInterface { |
|
59 | $headers['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; |
|
60 | ||
61 | return $this->call('POST', $uri, [], $data, $headers, $cookies); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * @param string $uri |
|
@@ 72-81 (lines=10) @@ | ||
69 | * |
|
70 | * @return ResponseInterface |
|
71 | */ |
|
72 | protected function put( |
|
73 | string $uri, |
|
74 | array $data = [], |
|
75 | array $headers = [], |
|
76 | array $cookies = [] |
|
77 | ): ResponseInterface { |
|
78 | $headers['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; |
|
79 | ||
80 | return $this->call('PUT', $uri, [], $data, $headers, $cookies); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @param string $uri |
|
@@ 91-100 (lines=10) @@ | ||
88 | * |
|
89 | * @return ResponseInterface |
|
90 | */ |
|
91 | protected function patch( |
|
92 | string $uri, |
|
93 | array $data = [], |
|
94 | array $headers = [], |
|
95 | array $cookies = [] |
|
96 | ): ResponseInterface { |
|
97 | $headers['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; |
|
98 | ||
99 | return $this->call('PATCH', $uri, [], $data, $headers, $cookies); |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * @param string $uri |