Skip to content

Feat/updates#4

Merged
oniice merged 11 commits intomainfrom
feat/updates
Apr 3, 2026
Merged

Feat/updates#4
oniice merged 11 commits intomainfrom
feat/updates

Conversation

@oniice
Copy link
Copy Markdown
Member

@oniice oniice commented Apr 3, 2026

No description provided.

oniice added 11 commits April 3, 2026 13:04
- Add WebUtilityException abstract base class
- All package exceptions now extend WebUtilityException
- Enables catching all package exceptions in one go
- Add tests for exception hierarchy
- Anchor regex to start of string with ^
- Prevents false matches on URLs containing schemes
- Applied to both UriUtility and ResponseUtility
- Fix IPv6 detection running after escapeshellarg
- Consolidate OS detection into detectOs() method
- Add setTimeout() and setTtl() fluent setters
- Add isAlive() and latency() convenience methods
- Add tests for new features
- Use getResponse()->getStatusCode() instead of getCode()
- Preserves actual status code (401, 403, 429, etc.)
- Add isSuccessful(), isRedirect(), isClientError(), isServerError()
- Add header() for single header lookup (case-insensitive)
- Add isJson() and json() for JSON response handling
- Add toArray() for response serialisation
- Add comprehensive tests for all new methods
- Add json(), contentType(), headers(), statusCode()
- Add withHeaders() and withTimeout() for request config
- Add post() for POST requests
- Add tests for all new features
- Add fragment(), withFragment(), withScheme()
- Add withHost(), withPath(), withPort()
- Add removeQueryParameter(), hasQueryParameter()
- Add userInfo(), isValid(), toArray(), equals()
- Add tests for all new features
- Add head() for lightweight HEAD requests
- Add setMaxRedirects() fluent setter
- Add isAlive() for quick 2xx liveness checks
- Return self instead of ResponseUtility for fluency
- Add tests for all new features
- Add static make() factory method
- Add response() to expose ResponseUtility
- Add isAlive() for quick liveness checks
- Add tests for all new features
- Add title() and metaDescription() helpers
- Add linkHrefs() and imageSrcs() extractors
- Add meta() for arbitrary meta tag lookup
- Add tests for all new methods
- Update README with new usage examples
- Document exception hierarchy
- Update content, ping, and URI utility docs
- Add docs for all new methods
@oniice oniice merged commit 1564dab into main Apr 3, 2026
6 checks passed
@oniice oniice deleted the feat/updates branch April 3, 2026 23:18
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.

1 participant