文件操作 - fingerprint.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/requests_toolbelt/adapters/__pycache__/fingerprint.cpython-310.pyc
编辑文件内容
o �ˀX| � @ s0 d Z ddlmZ ddlmZ G dd� de�ZdS )z�Submodule containing the implementation for the FingerprintAdapter. This file contains an implementation of a Transport Adapter that validates the fingerprints of SSL certificates presented upon connection. � )�HTTPAdapter� )�poolmanagerc s6 e Zd ZdZejdg Z� fdd�Zddd�Z� ZS ) �FingerprintAdaptera> A HTTPS Adapter for Python Requests that verifies certificate fingerprints, instead of certificate hostnames. Example usage: .. code-block:: python import requests import ssl from requests_toolbelt.adapters.fingerprint import FingerprintAdapter twitter_fingerprint = '...' s = requests.Session() s.mount( 'https://twitter.com', FingerprintAdapter(twitter_fingerprint) ) The fingerprint should be provided as a hexadecimal string, optionally containing colons. �fingerprintc s || _ tt| �jdi |�� d S )N� )r �superr �__init__)�selfr �kwargs�� __class__r �H/usr/lib/python3/dist-packages/requests_toolbelt/adapters/fingerprint.pyr &