← back to Atmos Game
assets/gen/.venv/lib/python3.12/site-packages/httpcore/__pycache__/_api.cpython-312.pyc
82 lines
�
c�bjJ � � � d dl mZ d dlZd dlZddlmZmZmZmZ ddl m
Z
dddd� d d�Zej dddd� d
d�� Z
y)� )�annotationsN� )�URL�
Extensions�HeaderTypes�Response)�ConnectionPool)�headers�content�
extensionsc �n � t � 5 }|j | ||||�� cddd� S # 1 sw Y yxY w)aT
Sends an HTTP request, returning the response.
```
response = httpcore.request("GET", "https://www.example.com/")
```
Arguments:
method: The HTTP method for the request. Typically one of `"GET"`,
`"OPTIONS"`, `"HEAD"`, `"POST"`, `"PUT"`, `"PATCH"`, or `"DELETE"`.
url: The URL of the HTTP request. Either as an instance of `httpcore.URL`,
or as str/bytes.
headers: The HTTP request headers. Either as a dictionary of str/bytes,
or as a list of two-tuples of str/bytes.
content: The content of the request body. Either as bytes,
or as a bytes iterator.
extensions: A dictionary of optional extra information included on the request.
Possible keys include `"timeout"`.
Returns:
An instance of `httpcore.Response`.
��method�urlr
r r N)r �request)r r r
r r �pools �d/Users/macstudio3/Projects/atmos-game/assets/gen/.venv/lib/python3.12/site-packages/httpcore/_api.pyr r
s8 � �<