← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/httpx/__pycache__/_models.cpython-312.pyc
389 lines
�
c�bj�� � � � 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=dd�Z>d d!d�Z?d d"d�Z@d#d�ZAd$d�ZB d%d�ZC G d� de j� eEeEf � ZF G d� d� ZG G d� d� ZH G d� de j� eEeEf � ZIy)&� )�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-authorizationc �N � t j | � y# t $ r Y yw xY w)z7
Return `True` if `encoding` is a known codec.
FT)�codecs�lookup�LookupError��encodings �d/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/httpx/_models.py�_is_known_encodingr7 8 s, � ���
�
�h�� �� � ���s � � $�$c �P � t | t � r| S | j |xs d� S )zE
Coerce str/bytes into a strictly byte-wise HTTP header key.
�ascii)�
isinstance�bytes�encode)�keyr5 s r6 �_normalize_header_keyr>