public class ClientInfoParser : IClientInfoParser| ClientInfoParser | Initializes a new instance of the ClientInfoParser class |
Public Methods | |
| GetIPAddress | 从 HTTP 上下文中获取 IP 地址。 |
| GetRequestEncoding | 从 HTTP 请求中获取字符编码。 |
| ParseIPAddress | 从一个 IP 字符串中解析有效的 IP 地址。 |
| ParseUserAgent | 从 HTTP headers 中解析 User-Agent。 |
Protected Methods | |
| GetBrowser(IHeaderDictionary) | 从 HTTP headers 中识别浏览器信息。 |
| GetBrowser(string) | 从 User-Agent 字符串中识别浏览器信息。 |
| GetDevice(IHeaderDictionary) | 从 HTTP headers 中识别设备信息。 |
| GetDevice(string) | 从 User-Agent 字符串中识别设备信息。 |
| GetOS(IHeaderDictionary) | 从 HTTP headers 中识别操作系统信息。 |
| GetOS(string) | 从 User-Agent 字符串中识别操作系统信息。 |
| IsSpider(IHeaderDictionary) | 从 HTTP headers 中识别是否是爬虫。 |
| IsSpider(string) | 从 User-Agent 字符串中识别是否是爬虫。 |