类文档

Requests_IPv6

💡 云策文档标注

概述

Requests_IPv6 类用于验证和处理 IPv6 地址,基于同名 PEAR 类重写而成。

关键要点

  • 提供 IPv6 地址的验证功能,如 check_ipv6 方法
  • 支持 IPv6 地址的压缩与解压缩,通过 compress 和 uncompress 方法
  • 包含 split_v6_v4 方法,用于拆分 IPv6 地址为 IPv6 和 IPv4 表示部分

📄 原文内容

Class to validate and to work with IPv6 addresses

Description

This was originally based on the PEAR class of the same name, but has been entirely rewritten.

Methods

Name Description
Requests_IPv6::check_ipv6 Checks an IPv6 address
Requests_IPv6::compress Compresses an IPv6 address
Requests_IPv6::split_v6_v4 Splits an IPv6 address into the IPv6 and IPv4 representation parts
Requests_IPv6::uncompress Uncompresses an IPv6 address

Source