piwebasync/http/hooks.py
async def use_safe_url_hook(safe: str, obj: Union[httpx.Request, httpx.Response]):
    """Request/Response hook for modifying percent encoding of urls"""
    safe_url = SafeURL(safe, obj.url)
    if isinstance(obj, httpx.Request):
        obj.url = safe_url
    else:
        obj.request.url = safe_url
Request/Response hook for modifying percent encoding of urls
Request/Response hook for modifying percent encoding of urls
Request / Response hook for modifying percent encoding of urls
async def use_safe_url_hook(safe: str, obj: Union[httpx.Request, httpx.Response]):
    safe_url = SafeURL(safe, obj.url)
    if isinstance(obj, httpx.Request):
        obj.url = safe_url
    else:
        obj.request.url = safe_url
async def use_safe_url_hook ( safe : str , obj : Union [ httpx . Request , httpx . Response ] ) : safe_url = SafeURL ( safe , obj . url ) if isinstance ( obj , httpx . Request ) : obj . url = safe_url else : obj . request . url = safe_url
Request/Response hook for modifying percent encoding of urls
Request / Response hook for modifying percent encoding of urls
"""Request/Response hook for modifying percent encoding of urls"""
safe
str
obj
Union[httpx.Request, httpx.Response]