1 |
efrain |
1 |
<?php
|
|
|
2 |
namespace Aws\ApiGateway;
|
|
|
3 |
|
|
|
4 |
use Aws\AwsClient;
|
|
|
5 |
use Aws\CommandInterface;
|
|
|
6 |
use Psr\Http\Message\RequestInterface;
|
|
|
7 |
|
|
|
8 |
/**
|
|
|
9 |
* This client is used to interact with the **AWS API Gateway** service.
|
|
|
10 |
*
|
|
|
11 |
* @method \Aws\Result createApiKey(array $args = [])
|
|
|
12 |
* @method \GuzzleHttp\Promise\Promise createApiKeyAsync(array $args = [])
|
|
|
13 |
* @method \Aws\Result createAuthorizer(array $args = [])
|
|
|
14 |
* @method \GuzzleHttp\Promise\Promise createAuthorizerAsync(array $args = [])
|
|
|
15 |
* @method \Aws\Result createBasePathMapping(array $args = [])
|
|
|
16 |
* @method \GuzzleHttp\Promise\Promise createBasePathMappingAsync(array $args = [])
|
|
|
17 |
* @method \Aws\Result createDeployment(array $args = [])
|
|
|
18 |
* @method \GuzzleHttp\Promise\Promise createDeploymentAsync(array $args = [])
|
|
|
19 |
* @method \Aws\Result createDocumentationPart(array $args = [])
|
|
|
20 |
* @method \GuzzleHttp\Promise\Promise createDocumentationPartAsync(array $args = [])
|
|
|
21 |
* @method \Aws\Result createDocumentationVersion(array $args = [])
|
|
|
22 |
* @method \GuzzleHttp\Promise\Promise createDocumentationVersionAsync(array $args = [])
|
|
|
23 |
* @method \Aws\Result createDomainName(array $args = [])
|
|
|
24 |
* @method \GuzzleHttp\Promise\Promise createDomainNameAsync(array $args = [])
|
|
|
25 |
* @method \Aws\Result createModel(array $args = [])
|
|
|
26 |
* @method \GuzzleHttp\Promise\Promise createModelAsync(array $args = [])
|
|
|
27 |
* @method \Aws\Result createRequestValidator(array $args = [])
|
|
|
28 |
* @method \GuzzleHttp\Promise\Promise createRequestValidatorAsync(array $args = [])
|
|
|
29 |
* @method \Aws\Result createResource(array $args = [])
|
|
|
30 |
* @method \GuzzleHttp\Promise\Promise createResourceAsync(array $args = [])
|
|
|
31 |
* @method \Aws\Result createRestApi(array $args = [])
|
|
|
32 |
* @method \GuzzleHttp\Promise\Promise createRestApiAsync(array $args = [])
|
|
|
33 |
* @method \Aws\Result createStage(array $args = [])
|
|
|
34 |
* @method \GuzzleHttp\Promise\Promise createStageAsync(array $args = [])
|
|
|
35 |
* @method \Aws\Result createUsagePlan(array $args = [])
|
|
|
36 |
* @method \GuzzleHttp\Promise\Promise createUsagePlanAsync(array $args = [])
|
|
|
37 |
* @method \Aws\Result createUsagePlanKey(array $args = [])
|
|
|
38 |
* @method \GuzzleHttp\Promise\Promise createUsagePlanKeyAsync(array $args = [])
|
|
|
39 |
* @method \Aws\Result createVpcLink(array $args = [])
|
|
|
40 |
* @method \GuzzleHttp\Promise\Promise createVpcLinkAsync(array $args = [])
|
|
|
41 |
* @method \Aws\Result deleteApiKey(array $args = [])
|
|
|
42 |
* @method \GuzzleHttp\Promise\Promise deleteApiKeyAsync(array $args = [])
|
|
|
43 |
* @method \Aws\Result deleteAuthorizer(array $args = [])
|
|
|
44 |
* @method \GuzzleHttp\Promise\Promise deleteAuthorizerAsync(array $args = [])
|
|
|
45 |
* @method \Aws\Result deleteBasePathMapping(array $args = [])
|
|
|
46 |
* @method \GuzzleHttp\Promise\Promise deleteBasePathMappingAsync(array $args = [])
|
|
|
47 |
* @method \Aws\Result deleteClientCertificate(array $args = [])
|
|
|
48 |
* @method \GuzzleHttp\Promise\Promise deleteClientCertificateAsync(array $args = [])
|
|
|
49 |
* @method \Aws\Result deleteDeployment(array $args = [])
|
|
|
50 |
* @method \GuzzleHttp\Promise\Promise deleteDeploymentAsync(array $args = [])
|
|
|
51 |
* @method \Aws\Result deleteDocumentationPart(array $args = [])
|
|
|
52 |
* @method \GuzzleHttp\Promise\Promise deleteDocumentationPartAsync(array $args = [])
|
|
|
53 |
* @method \Aws\Result deleteDocumentationVersion(array $args = [])
|
|
|
54 |
* @method \GuzzleHttp\Promise\Promise deleteDocumentationVersionAsync(array $args = [])
|
|
|
55 |
* @method \Aws\Result deleteDomainName(array $args = [])
|
|
|
56 |
* @method \GuzzleHttp\Promise\Promise deleteDomainNameAsync(array $args = [])
|
|
|
57 |
* @method \Aws\Result deleteGatewayResponse(array $args = [])
|
|
|
58 |
* @method \GuzzleHttp\Promise\Promise deleteGatewayResponseAsync(array $args = [])
|
|
|
59 |
* @method \Aws\Result deleteIntegration(array $args = [])
|
|
|
60 |
* @method \GuzzleHttp\Promise\Promise deleteIntegrationAsync(array $args = [])
|
|
|
61 |
* @method \Aws\Result deleteIntegrationResponse(array $args = [])
|
|
|
62 |
* @method \GuzzleHttp\Promise\Promise deleteIntegrationResponseAsync(array $args = [])
|
|
|
63 |
* @method \Aws\Result deleteMethod(array $args = [])
|
|
|
64 |
* @method \GuzzleHttp\Promise\Promise deleteMethodAsync(array $args = [])
|
|
|
65 |
* @method \Aws\Result deleteMethodResponse(array $args = [])
|
|
|
66 |
* @method \GuzzleHttp\Promise\Promise deleteMethodResponseAsync(array $args = [])
|
|
|
67 |
* @method \Aws\Result deleteModel(array $args = [])
|
|
|
68 |
* @method \GuzzleHttp\Promise\Promise deleteModelAsync(array $args = [])
|
|
|
69 |
* @method \Aws\Result deleteRequestValidator(array $args = [])
|
|
|
70 |
* @method \GuzzleHttp\Promise\Promise deleteRequestValidatorAsync(array $args = [])
|
|
|
71 |
* @method \Aws\Result deleteResource(array $args = [])
|
|
|
72 |
* @method \GuzzleHttp\Promise\Promise deleteResourceAsync(array $args = [])
|
|
|
73 |
* @method \Aws\Result deleteRestApi(array $args = [])
|
|
|
74 |
* @method \GuzzleHttp\Promise\Promise deleteRestApiAsync(array $args = [])
|
|
|
75 |
* @method \Aws\Result deleteStage(array $args = [])
|
|
|
76 |
* @method \GuzzleHttp\Promise\Promise deleteStageAsync(array $args = [])
|
|
|
77 |
* @method \Aws\Result deleteUsagePlan(array $args = [])
|
|
|
78 |
* @method \GuzzleHttp\Promise\Promise deleteUsagePlanAsync(array $args = [])
|
|
|
79 |
* @method \Aws\Result deleteUsagePlanKey(array $args = [])
|
|
|
80 |
* @method \GuzzleHttp\Promise\Promise deleteUsagePlanKeyAsync(array $args = [])
|
|
|
81 |
* @method \Aws\Result deleteVpcLink(array $args = [])
|
|
|
82 |
* @method \GuzzleHttp\Promise\Promise deleteVpcLinkAsync(array $args = [])
|
|
|
83 |
* @method \Aws\Result flushStageAuthorizersCache(array $args = [])
|
|
|
84 |
* @method \GuzzleHttp\Promise\Promise flushStageAuthorizersCacheAsync(array $args = [])
|
|
|
85 |
* @method \Aws\Result flushStageCache(array $args = [])
|
|
|
86 |
* @method \GuzzleHttp\Promise\Promise flushStageCacheAsync(array $args = [])
|
|
|
87 |
* @method \Aws\Result generateClientCertificate(array $args = [])
|
|
|
88 |
* @method \GuzzleHttp\Promise\Promise generateClientCertificateAsync(array $args = [])
|
|
|
89 |
* @method \Aws\Result getAccount(array $args = [])
|
|
|
90 |
* @method \GuzzleHttp\Promise\Promise getAccountAsync(array $args = [])
|
|
|
91 |
* @method \Aws\Result getApiKey(array $args = [])
|
|
|
92 |
* @method \GuzzleHttp\Promise\Promise getApiKeyAsync(array $args = [])
|
|
|
93 |
* @method \Aws\Result getApiKeys(array $args = [])
|
|
|
94 |
* @method \GuzzleHttp\Promise\Promise getApiKeysAsync(array $args = [])
|
|
|
95 |
* @method \Aws\Result getAuthorizer(array $args = [])
|
|
|
96 |
* @method \GuzzleHttp\Promise\Promise getAuthorizerAsync(array $args = [])
|
|
|
97 |
* @method \Aws\Result getAuthorizers(array $args = [])
|
|
|
98 |
* @method \GuzzleHttp\Promise\Promise getAuthorizersAsync(array $args = [])
|
|
|
99 |
* @method \Aws\Result getBasePathMapping(array $args = [])
|
|
|
100 |
* @method \GuzzleHttp\Promise\Promise getBasePathMappingAsync(array $args = [])
|
|
|
101 |
* @method \Aws\Result getBasePathMappings(array $args = [])
|
|
|
102 |
* @method \GuzzleHttp\Promise\Promise getBasePathMappingsAsync(array $args = [])
|
|
|
103 |
* @method \Aws\Result getClientCertificate(array $args = [])
|
|
|
104 |
* @method \GuzzleHttp\Promise\Promise getClientCertificateAsync(array $args = [])
|
|
|
105 |
* @method \Aws\Result getClientCertificates(array $args = [])
|
|
|
106 |
* @method \GuzzleHttp\Promise\Promise getClientCertificatesAsync(array $args = [])
|
|
|
107 |
* @method \Aws\Result getDeployment(array $args = [])
|
|
|
108 |
* @method \GuzzleHttp\Promise\Promise getDeploymentAsync(array $args = [])
|
|
|
109 |
* @method \Aws\Result getDeployments(array $args = [])
|
|
|
110 |
* @method \GuzzleHttp\Promise\Promise getDeploymentsAsync(array $args = [])
|
|
|
111 |
* @method \Aws\Result getDocumentationPart(array $args = [])
|
|
|
112 |
* @method \GuzzleHttp\Promise\Promise getDocumentationPartAsync(array $args = [])
|
|
|
113 |
* @method \Aws\Result getDocumentationParts(array $args = [])
|
|
|
114 |
* @method \GuzzleHttp\Promise\Promise getDocumentationPartsAsync(array $args = [])
|
|
|
115 |
* @method \Aws\Result getDocumentationVersion(array $args = [])
|
|
|
116 |
* @method \GuzzleHttp\Promise\Promise getDocumentationVersionAsync(array $args = [])
|
|
|
117 |
* @method \Aws\Result getDocumentationVersions(array $args = [])
|
|
|
118 |
* @method \GuzzleHttp\Promise\Promise getDocumentationVersionsAsync(array $args = [])
|
|
|
119 |
* @method \Aws\Result getDomainName(array $args = [])
|
|
|
120 |
* @method \GuzzleHttp\Promise\Promise getDomainNameAsync(array $args = [])
|
|
|
121 |
* @method \Aws\Result getDomainNames(array $args = [])
|
|
|
122 |
* @method \GuzzleHttp\Promise\Promise getDomainNamesAsync(array $args = [])
|
|
|
123 |
* @method \Aws\Result getExport(array $args = [])
|
|
|
124 |
* @method \GuzzleHttp\Promise\Promise getExportAsync(array $args = [])
|
|
|
125 |
* @method \Aws\Result getGatewayResponse(array $args = [])
|
|
|
126 |
* @method \GuzzleHttp\Promise\Promise getGatewayResponseAsync(array $args = [])
|
|
|
127 |
* @method \Aws\Result getGatewayResponses(array $args = [])
|
|
|
128 |
* @method \GuzzleHttp\Promise\Promise getGatewayResponsesAsync(array $args = [])
|
|
|
129 |
* @method \Aws\Result getIntegration(array $args = [])
|
|
|
130 |
* @method \GuzzleHttp\Promise\Promise getIntegrationAsync(array $args = [])
|
|
|
131 |
* @method \Aws\Result getIntegrationResponse(array $args = [])
|
|
|
132 |
* @method \GuzzleHttp\Promise\Promise getIntegrationResponseAsync(array $args = [])
|
|
|
133 |
* @method \Aws\Result getMethod(array $args = [])
|
|
|
134 |
* @method \GuzzleHttp\Promise\Promise getMethodAsync(array $args = [])
|
|
|
135 |
* @method \Aws\Result getMethodResponse(array $args = [])
|
|
|
136 |
* @method \GuzzleHttp\Promise\Promise getMethodResponseAsync(array $args = [])
|
|
|
137 |
* @method \Aws\Result getModel(array $args = [])
|
|
|
138 |
* @method \GuzzleHttp\Promise\Promise getModelAsync(array $args = [])
|
|
|
139 |
* @method \Aws\Result getModelTemplate(array $args = [])
|
|
|
140 |
* @method \GuzzleHttp\Promise\Promise getModelTemplateAsync(array $args = [])
|
|
|
141 |
* @method \Aws\Result getModels(array $args = [])
|
|
|
142 |
* @method \GuzzleHttp\Promise\Promise getModelsAsync(array $args = [])
|
|
|
143 |
* @method \Aws\Result getRequestValidator(array $args = [])
|
|
|
144 |
* @method \GuzzleHttp\Promise\Promise getRequestValidatorAsync(array $args = [])
|
|
|
145 |
* @method \Aws\Result getRequestValidators(array $args = [])
|
|
|
146 |
* @method \GuzzleHttp\Promise\Promise getRequestValidatorsAsync(array $args = [])
|
|
|
147 |
* @method \Aws\Result getResource(array $args = [])
|
|
|
148 |
* @method \GuzzleHttp\Promise\Promise getResourceAsync(array $args = [])
|
|
|
149 |
* @method \Aws\Result getResources(array $args = [])
|
|
|
150 |
* @method \GuzzleHttp\Promise\Promise getResourcesAsync(array $args = [])
|
|
|
151 |
* @method \Aws\Result getRestApi(array $args = [])
|
|
|
152 |
* @method \GuzzleHttp\Promise\Promise getRestApiAsync(array $args = [])
|
|
|
153 |
* @method \Aws\Result getRestApis(array $args = [])
|
|
|
154 |
* @method \GuzzleHttp\Promise\Promise getRestApisAsync(array $args = [])
|
|
|
155 |
* @method \Aws\Result getSdk(array $args = [])
|
|
|
156 |
* @method \GuzzleHttp\Promise\Promise getSdkAsync(array $args = [])
|
|
|
157 |
* @method \Aws\Result getSdkType(array $args = [])
|
|
|
158 |
* @method \GuzzleHttp\Promise\Promise getSdkTypeAsync(array $args = [])
|
|
|
159 |
* @method \Aws\Result getSdkTypes(array $args = [])
|
|
|
160 |
* @method \GuzzleHttp\Promise\Promise getSdkTypesAsync(array $args = [])
|
|
|
161 |
* @method \Aws\Result getStage(array $args = [])
|
|
|
162 |
* @method \GuzzleHttp\Promise\Promise getStageAsync(array $args = [])
|
|
|
163 |
* @method \Aws\Result getStages(array $args = [])
|
|
|
164 |
* @method \GuzzleHttp\Promise\Promise getStagesAsync(array $args = [])
|
|
|
165 |
* @method \Aws\Result getTags(array $args = [])
|
|
|
166 |
* @method \GuzzleHttp\Promise\Promise getTagsAsync(array $args = [])
|
|
|
167 |
* @method \Aws\Result getUsage(array $args = [])
|
|
|
168 |
* @method \GuzzleHttp\Promise\Promise getUsageAsync(array $args = [])
|
|
|
169 |
* @method \Aws\Result getUsagePlan(array $args = [])
|
|
|
170 |
* @method \GuzzleHttp\Promise\Promise getUsagePlanAsync(array $args = [])
|
|
|
171 |
* @method \Aws\Result getUsagePlanKey(array $args = [])
|
|
|
172 |
* @method \GuzzleHttp\Promise\Promise getUsagePlanKeyAsync(array $args = [])
|
|
|
173 |
* @method \Aws\Result getUsagePlanKeys(array $args = [])
|
|
|
174 |
* @method \GuzzleHttp\Promise\Promise getUsagePlanKeysAsync(array $args = [])
|
|
|
175 |
* @method \Aws\Result getUsagePlans(array $args = [])
|
|
|
176 |
* @method \GuzzleHttp\Promise\Promise getUsagePlansAsync(array $args = [])
|
|
|
177 |
* @method \Aws\Result getVpcLink(array $args = [])
|
|
|
178 |
* @method \GuzzleHttp\Promise\Promise getVpcLinkAsync(array $args = [])
|
|
|
179 |
* @method \Aws\Result getVpcLinks(array $args = [])
|
|
|
180 |
* @method \GuzzleHttp\Promise\Promise getVpcLinksAsync(array $args = [])
|
|
|
181 |
* @method \Aws\Result importApiKeys(array $args = [])
|
|
|
182 |
* @method \GuzzleHttp\Promise\Promise importApiKeysAsync(array $args = [])
|
|
|
183 |
* @method \Aws\Result importDocumentationParts(array $args = [])
|
|
|
184 |
* @method \GuzzleHttp\Promise\Promise importDocumentationPartsAsync(array $args = [])
|
|
|
185 |
* @method \Aws\Result importRestApi(array $args = [])
|
|
|
186 |
* @method \GuzzleHttp\Promise\Promise importRestApiAsync(array $args = [])
|
|
|
187 |
* @method \Aws\Result putGatewayResponse(array $args = [])
|
|
|
188 |
* @method \GuzzleHttp\Promise\Promise putGatewayResponseAsync(array $args = [])
|
|
|
189 |
* @method \Aws\Result putIntegration(array $args = [])
|
|
|
190 |
* @method \GuzzleHttp\Promise\Promise putIntegrationAsync(array $args = [])
|
|
|
191 |
* @method \Aws\Result putIntegrationResponse(array $args = [])
|
|
|
192 |
* @method \GuzzleHttp\Promise\Promise putIntegrationResponseAsync(array $args = [])
|
|
|
193 |
* @method \Aws\Result putMethod(array $args = [])
|
|
|
194 |
* @method \GuzzleHttp\Promise\Promise putMethodAsync(array $args = [])
|
|
|
195 |
* @method \Aws\Result putMethodResponse(array $args = [])
|
|
|
196 |
* @method \GuzzleHttp\Promise\Promise putMethodResponseAsync(array $args = [])
|
|
|
197 |
* @method \Aws\Result putRestApi(array $args = [])
|
|
|
198 |
* @method \GuzzleHttp\Promise\Promise putRestApiAsync(array $args = [])
|
|
|
199 |
* @method \Aws\Result tagResource(array $args = [])
|
|
|
200 |
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
|
|
201 |
* @method \Aws\Result testInvokeAuthorizer(array $args = [])
|
|
|
202 |
* @method \GuzzleHttp\Promise\Promise testInvokeAuthorizerAsync(array $args = [])
|
|
|
203 |
* @method \Aws\Result testInvokeMethod(array $args = [])
|
|
|
204 |
* @method \GuzzleHttp\Promise\Promise testInvokeMethodAsync(array $args = [])
|
|
|
205 |
* @method \Aws\Result untagResource(array $args = [])
|
|
|
206 |
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
|
|
207 |
* @method \Aws\Result updateAccount(array $args = [])
|
|
|
208 |
* @method \GuzzleHttp\Promise\Promise updateAccountAsync(array $args = [])
|
|
|
209 |
* @method \Aws\Result updateApiKey(array $args = [])
|
|
|
210 |
* @method \GuzzleHttp\Promise\Promise updateApiKeyAsync(array $args = [])
|
|
|
211 |
* @method \Aws\Result updateAuthorizer(array $args = [])
|
|
|
212 |
* @method \GuzzleHttp\Promise\Promise updateAuthorizerAsync(array $args = [])
|
|
|
213 |
* @method \Aws\Result updateBasePathMapping(array $args = [])
|
|
|
214 |
* @method \GuzzleHttp\Promise\Promise updateBasePathMappingAsync(array $args = [])
|
|
|
215 |
* @method \Aws\Result updateClientCertificate(array $args = [])
|
|
|
216 |
* @method \GuzzleHttp\Promise\Promise updateClientCertificateAsync(array $args = [])
|
|
|
217 |
* @method \Aws\Result updateDeployment(array $args = [])
|
|
|
218 |
* @method \GuzzleHttp\Promise\Promise updateDeploymentAsync(array $args = [])
|
|
|
219 |
* @method \Aws\Result updateDocumentationPart(array $args = [])
|
|
|
220 |
* @method \GuzzleHttp\Promise\Promise updateDocumentationPartAsync(array $args = [])
|
|
|
221 |
* @method \Aws\Result updateDocumentationVersion(array $args = [])
|
|
|
222 |
* @method \GuzzleHttp\Promise\Promise updateDocumentationVersionAsync(array $args = [])
|
|
|
223 |
* @method \Aws\Result updateDomainName(array $args = [])
|
|
|
224 |
* @method \GuzzleHttp\Promise\Promise updateDomainNameAsync(array $args = [])
|
|
|
225 |
* @method \Aws\Result updateGatewayResponse(array $args = [])
|
|
|
226 |
* @method \GuzzleHttp\Promise\Promise updateGatewayResponseAsync(array $args = [])
|
|
|
227 |
* @method \Aws\Result updateIntegration(array $args = [])
|
|
|
228 |
* @method \GuzzleHttp\Promise\Promise updateIntegrationAsync(array $args = [])
|
|
|
229 |
* @method \Aws\Result updateIntegrationResponse(array $args = [])
|
|
|
230 |
* @method \GuzzleHttp\Promise\Promise updateIntegrationResponseAsync(array $args = [])
|
|
|
231 |
* @method \Aws\Result updateMethod(array $args = [])
|
|
|
232 |
* @method \GuzzleHttp\Promise\Promise updateMethodAsync(array $args = [])
|
|
|
233 |
* @method \Aws\Result updateMethodResponse(array $args = [])
|
|
|
234 |
* @method \GuzzleHttp\Promise\Promise updateMethodResponseAsync(array $args = [])
|
|
|
235 |
* @method \Aws\Result updateModel(array $args = [])
|
|
|
236 |
* @method \GuzzleHttp\Promise\Promise updateModelAsync(array $args = [])
|
|
|
237 |
* @method \Aws\Result updateRequestValidator(array $args = [])
|
|
|
238 |
* @method \GuzzleHttp\Promise\Promise updateRequestValidatorAsync(array $args = [])
|
|
|
239 |
* @method \Aws\Result updateResource(array $args = [])
|
|
|
240 |
* @method \GuzzleHttp\Promise\Promise updateResourceAsync(array $args = [])
|
|
|
241 |
* @method \Aws\Result updateRestApi(array $args = [])
|
|
|
242 |
* @method \GuzzleHttp\Promise\Promise updateRestApiAsync(array $args = [])
|
|
|
243 |
* @method \Aws\Result updateStage(array $args = [])
|
|
|
244 |
* @method \GuzzleHttp\Promise\Promise updateStageAsync(array $args = [])
|
|
|
245 |
* @method \Aws\Result updateUsage(array $args = [])
|
|
|
246 |
* @method \GuzzleHttp\Promise\Promise updateUsageAsync(array $args = [])
|
|
|
247 |
* @method \Aws\Result updateUsagePlan(array $args = [])
|
|
|
248 |
* @method \GuzzleHttp\Promise\Promise updateUsagePlanAsync(array $args = [])
|
|
|
249 |
* @method \Aws\Result updateVpcLink(array $args = [])
|
|
|
250 |
* @method \GuzzleHttp\Promise\Promise updateVpcLinkAsync(array $args = [])
|
|
|
251 |
*/
|
|
|
252 |
class ApiGatewayClient extends AwsClient
|
|
|
253 |
{
|
|
|
254 |
public function __construct(array $args)
|
|
|
255 |
{
|
|
|
256 |
parent::__construct($args);
|
|
|
257 |
$stack = $this->getHandlerList();
|
|
|
258 |
$stack->appendBuild([__CLASS__, '_add_accept_header']);
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
public static function _add_accept_header(callable $handler)
|
|
|
262 |
{
|
|
|
263 |
return function (
|
|
|
264 |
CommandInterface $command,
|
|
|
265 |
RequestInterface $request
|
|
|
266 |
) use ($handler) {
|
|
|
267 |
$request = $request->withHeader('Accept', 'application/json');
|
|
|
268 |
|
|
|
269 |
return $handler($command, $request);
|
|
|
270 |
};
|
|
|
271 |
}
|
|
|
272 |
}
|