Files
TransPyC/Test/WebTest/temp/b558d8d8f01f4825.pyi
2026-07-18 19:25:40 +08:00

40 lines
910 B
Python

"""
Auto-generated Python stub file from requests.py
Module: requests
"""
import t, c
from stdint import *
import string
import socket
import memhub
import stdio
_mbuddy: t.CExtern | memhub.MemBuddy | t.CPtr
_socket_ready: t.CExtern | bool
HTTP_PORT: t.CDefine = 80
HTTP_BUFSIZ: t.CDefine = 4096
class Response:
status_code: INT
text: str
body_len: INT
_raw_buf: str
def _EnsureSocketInit() -> INT: pass
def _AllocResponse() -> Response | t.CPtr: pass
def _ParseUrl(url: str, host_buf: str, host_size: INT, path_buf: str, path_size: INT, port: INT | t.CPtr) -> INT: pass
def _ParseStatusLine(resp_text: str, out_code: INT | t.CPtr) -> INT: pass
def _FindBodyStart(resp_text: str, resp_len: INT) -> INT: pass
def get(url: str) -> Response | t.CPtr: pass
def post(url: str, data: str, content_type: str) -> Response | t.CPtr: pass
def release(resp: Response | t.CPtr) -> t.CInt: pass