Files
syn-chat-bot/.venv/lib/python3.9/site-packages/niquests/_constant.py
Hyungi Ahn c2257d3a86 fix: 포트 충돌 회피 — note_bridge 8098, intent_service 8099
Jellyfin(8096), OrbStack(8097) 포트 충돌으로 변경.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 13:53:55 +09:00

26 lines
802 B
Python

from __future__ import annotations
from .typing import RetryType, TimeoutType
#: Default timeout (total) assigned for GET, HEAD, and OPTIONS methods.
READ_DEFAULT_TIMEOUT: TimeoutType = 30
#: Default timeout (total) assigned for DELETE, PUT, PATCH, and POST.
WRITE_DEFAULT_TIMEOUT: TimeoutType = 120
DEFAULT_POOLBLOCK: bool = False
DEFAULT_POOLSIZE: int = 10
DEFAULT_RETRIES: RetryType = 0
# we don't want to eagerly load this as some user just
# don't leverage ssl anyway. this should make niquests
# import generally faster.
def __getattr__(name: str):
if name == "DEFAULT_CA_BUNDLE":
import wassima
val = wassima.generate_ca_bundle()
globals()["DEFAULT_CA_BUNDLE"] = val
return val
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")