Skip to content

Conversation

@AndreyLebedev345
Copy link

Summary

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

AndreyLebedev345 and others added 4 commits October 7, 2025 19:40
Add documentation to is_ipv4_hostname and is_ipv6_hostname functions
to clarify their purpose and CIDR notation support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Introduced a new helper function, is_ip_address, to check if a given hostname is a valid IP address (either IPv4 or IPv6), including support for CIDR notation. This enhances the utility of the IP validation module.
…ling

Introduced a new utility function, normalize_header_key, to standardize HTTP header keys for comparison and storage. This function normalizes keys to lowercase by default, with an option to preserve the original case for compatibility with HTTP/1.1. Updated __all__ to include the new function.
Add a new retry_after property that parses the Retry-After HTTP header
and returns the recommended retry delay as either an integer (seconds)
or a datetime object (for HTTP-date format).

This is useful for handling rate limiting (429) and service unavailable
(503) responses. The property returns None if the header is missing or
cannot be parsed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@AndreyLebedev345 AndreyLebedev345 deleted the test-docs-bot-trigger branch October 7, 2025 23:35
@AndreyLebedev345 AndreyLebedev345 restored the test-docs-bot-trigger branch October 7, 2025 23:41
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