|
251 | 251 | 0, |
252 | 252 | argumentsSet('json_encode_flags') |
253 | 253 | ); |
| 254 | +registerArgumentsSet( |
| 255 | + 'response_headers', |
| 256 | + \Framework\HTTP\ResponseHeader::ACCEPT_RANGES, |
| 257 | + \Framework\HTTP\ResponseHeader::ACCESS_CONTROL_ALLOW_CREDENTIALS, |
| 258 | + \Framework\HTTP\ResponseHeader::ACCESS_CONTROL_ALLOW_HEADERS, |
| 259 | + \Framework\HTTP\ResponseHeader::ACCESS_CONTROL_ALLOW_METHODS, |
| 260 | + \Framework\HTTP\ResponseHeader::ACCESS_CONTROL_ALLOW_ORIGIN, |
| 261 | + \Framework\HTTP\ResponseHeader::ACCESS_CONTROL_EXPOSE_HEADERS, |
| 262 | + \Framework\HTTP\ResponseHeader::ACCESS_CONTROL_MAX_AGE, |
| 263 | + \Framework\HTTP\ResponseHeader::AGE, |
| 264 | + \Framework\HTTP\ResponseHeader::ALLOW, |
| 265 | + \Framework\HTTP\ResponseHeader::CACHE_CONTROL, |
| 266 | + \Framework\HTTP\ResponseHeader::CLEAR_SITE_DATA, |
| 267 | + \Framework\HTTP\ResponseHeader::CONNECTION, |
| 268 | + \Framework\HTTP\ResponseHeader::CONTENT_DISPOSITION, |
| 269 | + \Framework\HTTP\ResponseHeader::CONTENT_ENCODING, |
| 270 | + \Framework\HTTP\ResponseHeader::CONTENT_LANGUAGE, |
| 271 | + \Framework\HTTP\ResponseHeader::CONTENT_LENGTH, |
| 272 | + \Framework\HTTP\ResponseHeader::CONTENT_LOCATION, |
| 273 | + \Framework\HTTP\ResponseHeader::CONTENT_RANGE, |
| 274 | + \Framework\HTTP\ResponseHeader::CONTENT_SECURITY_POLICY, |
| 275 | + \Framework\HTTP\ResponseHeader::CONTENT_SECURITY_POLICY_REPORT_ONLY, |
| 276 | + \Framework\HTTP\ResponseHeader::CONTENT_TYPE, |
| 277 | + \Framework\HTTP\ResponseHeader::DATE, |
| 278 | + \Framework\HTTP\ResponseHeader::ETAG, |
| 279 | + \Framework\HTTP\ResponseHeader::EXPECT_CT, |
| 280 | + \Framework\HTTP\ResponseHeader::EXPIRES, |
| 281 | + \Framework\HTTP\ResponseHeader::FEATURE_POLICY, |
| 282 | + \Framework\HTTP\ResponseHeader::KEEP_ALIVE, |
| 283 | + \Framework\HTTP\ResponseHeader::LAST_MODIFIED, |
| 284 | + \Framework\HTTP\ResponseHeader::LINK, |
| 285 | + \Framework\HTTP\ResponseHeader::LOCATION, |
| 286 | + \Framework\HTTP\ResponseHeader::PRAGMA, |
| 287 | + \Framework\HTTP\ResponseHeader::PROXY_AUTHENTICATE, |
| 288 | + \Framework\HTTP\ResponseHeader::PUBLIC_KEY_PINS, |
| 289 | + \Framework\HTTP\ResponseHeader::PUBLIC_KEY_PINS_REPORT_ONLY, |
| 290 | + \Framework\HTTP\ResponseHeader::REFERRER_POLICY, |
| 291 | + \Framework\HTTP\ResponseHeader::RETRY_AFTER, |
| 292 | + \Framework\HTTP\ResponseHeader::SERVER, |
| 293 | + \Framework\HTTP\ResponseHeader::SET_COOKIE, |
| 294 | + \Framework\HTTP\ResponseHeader::SOURCEMAP, |
| 295 | + \Framework\HTTP\ResponseHeader::STRICT_TRANSPORT_SECURITY, |
| 296 | + \Framework\HTTP\ResponseHeader::TIMING_ALLOW_ORIGIN, |
| 297 | + \Framework\HTTP\ResponseHeader::TK, |
| 298 | + \Framework\HTTP\ResponseHeader::TRAILER, |
| 299 | + \Framework\HTTP\ResponseHeader::TRANSFER_ENCODING, |
| 300 | + \Framework\HTTP\ResponseHeader::UPGRADE, |
| 301 | + \Framework\HTTP\ResponseHeader::VARY, |
| 302 | + \Framework\HTTP\ResponseHeader::VIA, |
| 303 | + \Framework\HTTP\ResponseHeader::WARNING, |
| 304 | + \Framework\HTTP\ResponseHeader::WWW_AUTHENTICATE, |
| 305 | + \Framework\HTTP\ResponseHeader::X_CONTENT_TYPE_OPTIONS, |
| 306 | + \Framework\HTTP\ResponseHeader::X_DNS_PREFETCH_CONTROL, |
| 307 | + \Framework\HTTP\ResponseHeader::X_FRAME_OPTIONS, |
| 308 | + \Framework\HTTP\ResponseHeader::X_POWERED_BY, |
| 309 | + \Framework\HTTP\ResponseHeader::X_REQUEST_ID, |
| 310 | + \Framework\HTTP\ResponseHeader::X_XSS_PROTECTION, |
| 311 | + 'Accept-Ranges', |
| 312 | + 'Access-Control-Allow-Credentials', |
| 313 | + 'Access-Control-Allow-Headers', |
| 314 | + 'Access-Control-Allow-Methods', |
| 315 | + 'Access-Control-Allow-Origin', |
| 316 | + 'Access-Control-Expose-Headers', |
| 317 | + 'Access-Control-Max-Age', |
| 318 | + 'Age', |
| 319 | + 'Allow', |
| 320 | + 'Cache-Control', |
| 321 | + 'Clear-Site-Data', |
| 322 | + 'Connection', |
| 323 | + 'Content-Disposition', |
| 324 | + 'Content-Encoding', |
| 325 | + 'Content-Language', |
| 326 | + 'Content-Length', |
| 327 | + 'Content-Location', |
| 328 | + 'Content-Range', |
| 329 | + 'Content-Security-Policy', |
| 330 | + 'Content-Security-Policy-Report-Only', |
| 331 | + 'Content-Type', |
| 332 | + 'Date', |
| 333 | + 'ETag', |
| 334 | + 'Expect-CT', |
| 335 | + 'Expires', |
| 336 | + 'Feature-Policy', |
| 337 | + 'Keep-Alive', |
| 338 | + 'Last-Modified', |
| 339 | + 'Link', |
| 340 | + 'Location', |
| 341 | + 'Pragma', |
| 342 | + 'Proxy-Authenticate', |
| 343 | + 'Public-Key-Pins', |
| 344 | + 'Public-Key-Pins-Report-Only', |
| 345 | + 'Referrer-Policy', |
| 346 | + 'Retry-After', |
| 347 | + 'Server', |
| 348 | + 'Set-Cookie', |
| 349 | + 'SourceMap', |
| 350 | + 'Strict-Transport-Security', |
| 351 | + 'Timing-Allow-Origin', |
| 352 | + 'Tk', |
| 353 | + 'Trailer', |
| 354 | + 'Transfer-Encoding', |
| 355 | + 'Upgrade', |
| 356 | + 'Vary', |
| 357 | + 'Via', |
| 358 | + 'WWW-Authenticate', |
| 359 | + 'Warning', |
| 360 | + 'X-Content-Type-Options', |
| 361 | + 'X-DNS-Prefetch-Control', |
| 362 | + 'X-Frame-Options', |
| 363 | + 'X-Powered-By', |
| 364 | + 'X-Request-ID', |
| 365 | + 'X-XSS-Protection', |
| 366 | +); |
| 367 | +expectedArguments( |
| 368 | + \Framework\HTTP\Client\Response::getHeader(), |
| 369 | + 0, |
| 370 | + argumentsSet('response_headers') |
| 371 | +); |
| 372 | +expectedArguments( |
| 373 | + \Framework\HTTP\Client\Response::getHeaderLine(), |
| 374 | + 0, |
| 375 | + argumentsSet('response_headers') |
| 376 | +); |
| 377 | + |
0 commit comments