�
K�g�� � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl
Zd dlm
Z
d dlmZmZ ddlmZmZmZmZ ddlmZmZmZmZmZmZmZmZ ddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& dd l'm(Z( dd
l)m*Z* ddl+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6 ddl7m8Z8 dd
l9m:Z:m;Z; g d�Z<ddhZ=d-d�Z>d.d/d�Z?d.d0d�Z@d1d�ZAd2d �ZBd3d$�ZC G d%� d&e jD eEeEf � � ZF G d'� d(� � ZG G d)� d*� � ZH G d+� d,e jD eEeEf � � ZIdS )4� )�annotationsN)�Mapping)�Cookie� CookieJar� )�
ByteStream�UnattachedStream�encode_request�encode_response)�SUPPORTED_DECODERS�ByteChunker�ContentDecoder�IdentityDecoder�LineDecoder�MultiDecoder�TextChunker�TextDecoder)�CookieConflict�HTTPStatusError�RequestNotRead�ResponseNotRead�StreamClosed�StreamConsumed�request_context)�(get_multipart_boundary_from_content_type)�codes)�AsyncByteStream�CookieTypes�HeaderTypes�QueryParamTypes�RequestContent�RequestData�RequestExtensions�RequestFiles�ResponseContent�ResponseExtensions�SyncByteStream)�URL)�to_bytes_or_str�to_str)�Cookies�Headers�Request�Response�
authorizationzproxy-authorization�encoding�str�return�boolc �T � t j | � � n# t $ r Y dS w xY wdS )z7
Return `True` if `encoding` is a known codec.
FT)�codecs�lookup�LookupError�r0 s �]/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/httpx/_models.py�_is_known_encodingr: 8 sA � ���
�h������� � � ��u�u������4s � �
%�%�key�str | bytes�
str | None�bytesc �^ � t | t � � r| n| � |pd� � S )zE
Coerce str/bytes into a strictly byte-wise HTTP header key.
�ascii)�
isinstancer>