Skip to content

Update request handling and prepare 3.0.2 - #18

Merged
Sheharyar-Malik merged 2 commits into
masterfrom
fix/request-handling-3.0.2
Nov 7, 2026
Merged

Sheharyar-Malik merged 2 commits into
masterfrom
fix/request-handling-3.0.2

Conversation

@MudassarTariq

@MudassarTariq MudassarTariq commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Update request handling and prepare version 3.0.2 with its README and changelog.

  • Hide configured API keys in request errors, typed bulk errors, and client/config debug output. Preserve HTTP status codes when error bodies cannot be read.
  • Restrict redirects to the same protocol, host and port. Apply connection/header and response-idle timeouts, and bound decoded response sizes.
  • Validate typed bulk result counts and objects. Keep raw responses and successful lookup data unchanged.
  • Add Arabic and the missing CDN, proxy, bot and corporate gateway fields.

The existing public methods and PHP 8.1+ support remain. Typed lookups reject malformed bulk results, and redirects to other servers now fail. Custom HTTP clients retain their handlers and callbacks.

Validation: 102 local unit/HTTP tests; a 50,000-result response over 100 MB; stream and cURL checks; 7 live API tests including Arabic and field comparisons; fresh Composer installation and all 14 PHP README examples. The dependency audit found no known advisories. All five CI jobs passed on PHP 8.1–8.5. The local suite also passed with Guzzle 7.15.2 and 7.16.1.

@MudassarTariq
MudassarTariq marked this pull request as ready for review November 6, 2026 11:37
@Sheharyar-Malik
Sheharyar-Malik merged commit c49128d into master Nov 7, 2026
5 checks passed
@Sheharyar-Malik
Sheharyar-Malik deleted the fix/request-handling-3.0.2 branch November 7, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants