1# -------------------------------------------------------------------------- 
    2# 
    3# Copyright (c) Microsoft Corporation. All rights reserved. 
    4# 
    5# The MIT License (MIT) 
    6# 
    7# Permission is hereby granted, free of charge, to any person obtaining a copy 
    8# of this software and associated documentation files (the ""Software""), to 
    9# deal in the Software without restriction, including without limitation the 
    10# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 
    11# sell copies of the Software, and to permit persons to whom the Software is 
    12# furnished to do so, subject to the following conditions: 
    13# 
    14# The above copyright notice and this permission notice shall be included in 
    15# all copies or substantial portions of the Software. 
    16# 
    17# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
    18# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
    19# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
    20# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
    21# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
    22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 
    23# IN THE SOFTWARE. 
    24# 
    25# -------------------------------------------------------------------------- 
    26 
    27from ._base import HTTPPolicy, SansIOHTTPPolicy, RequestHistory 
    28from ._authentication import ( 
    29    BearerTokenCredentialPolicy, 
    30    AzureKeyCredentialPolicy, 
    31    AzureSasCredentialPolicy, 
    32) 
    33from ._custom_hook import CustomHookPolicy 
    34from ._redirect import RedirectPolicy 
    35from ._retry import RetryPolicy, RetryMode 
    36from ._distributed_tracing import DistributedTracingPolicy 
    37from ._universal import ( 
    38    HeadersPolicy, 
    39    UserAgentPolicy, 
    40    NetworkTraceLoggingPolicy, 
    41    ContentDecodePolicy, 
    42    ProxyPolicy, 
    43    HttpLoggingPolicy, 
    44    RequestIdPolicy, 
    45) 
    46from ._base_async import AsyncHTTPPolicy 
    47from ._authentication_async import AsyncBearerTokenCredentialPolicy 
    48from ._redirect_async import AsyncRedirectPolicy 
    49from ._retry_async import AsyncRetryPolicy 
    50from ._sensitive_header_cleanup_policy import SensitiveHeaderCleanupPolicy 
    51 
    52__all__ = [ 
    53    "HTTPPolicy", 
    54    "SansIOHTTPPolicy", 
    55    "BearerTokenCredentialPolicy", 
    56    "AzureKeyCredentialPolicy", 
    57    "AzureSasCredentialPolicy", 
    58    "HeadersPolicy", 
    59    "UserAgentPolicy", 
    60    "NetworkTraceLoggingPolicy", 
    61    "ContentDecodePolicy", 
    62    "RetryMode", 
    63    "RetryPolicy", 
    64    "RedirectPolicy", 
    65    "ProxyPolicy", 
    66    "CustomHookPolicy", 
    67    "DistributedTracingPolicy", 
    68    "RequestHistory", 
    69    "HttpLoggingPolicy", 
    70    "RequestIdPolicy", 
    71    "AsyncHTTPPolicy", 
    72    "AsyncBearerTokenCredentialPolicy", 
    73    "AsyncRedirectPolicy", 
    74    "AsyncRetryPolicy", 
    75    "SensitiveHeaderCleanupPolicy", 
    76]