Requests

class Varwin.Requests

Базовые классы: object

Provides HTTP client functionality.

class Request

Базовые классы: object

HTTP request object.

class Response

Базовые классы: object

HTTP response object.

status_code: int
text: Any
content: Any
headers: Any
async static Get(url: str, *, params: Dict[str, str] | List[Tuple[str, str]] | None = None, headers: Dict[str, str] | None = None) Response

Send a GET request.

Пример:

response = await Varwin.Requests.Get("https://varwin.com")
async static Post(url: str, *, data: str | None = None, json: Any | None = None, headers: Dict[str, str] | None = None) Response

Send a POST request.

Пример:

response = await Varwin.Requests.Post("https://varwin.com")
async static Put(url: str, *, data: str | None = None, json: Any | None = None, headers: Dict[str, str] | None = None) Response

Send a PUT request.

Пример:

response = await Varwin.Requests.Put("https://varwin.com")
async static Delete(url: str, *, data: str | None = None, json: Any | None = None, headers: Dict[str, str] | None = None) Response

Send a DELETE request.

Пример:

response = await Varwin.Requests.Delete("https://varwin.com")