@ -33,7 +33,7 @@ def sync(
 | 
			
		||||
        client=client,
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    return ws_connect(kwargs["url"].replace("http", "ws"), additional_headers=kwargs["headers"], close_timeout=None, compression=None, max_size=None)  # type: ignore
 | 
			
		||||
    return ws_connect(kwargs["url"].replace("http", "ws"), additional_headers=kwargs["headers"])  # type: ignore
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
async def asyncio(
 | 
			
		||||
 | 
			
		||||
@ -41,15 +41,15 @@ def _get_kwargs(
 | 
			
		||||
 | 
			
		||||
def _parse_response(*, response: httpx.Response) -> Optional[Union[CodeOutput, Error]]:
 | 
			
		||||
    if response.status_code == 200:
 | 
			
		||||
        response_200 = CodeOutput.from_dict(response.json())
 | 
			
		||||
        response_200 = CodeOutput(**response.json())
 | 
			
		||||
        return response_200
 | 
			
		||||
    if response.status_code == 400:
 | 
			
		||||
        response_4XX = Error.from_dict(response.json())
 | 
			
		||||
        response_4XX = Error(**response.json())
 | 
			
		||||
        return response_4XX
 | 
			
		||||
    if response.status_code == 500:
 | 
			
		||||
        response_5XX = Error.from_dict(response.json())
 | 
			
		||||
        response_5XX = Error(**response.json())
 | 
			
		||||
        return response_5XX
 | 
			
		||||
    return Error.from_dict(response.json())
 | 
			
		||||
    return Error(**response.json())
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def _build_response(
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user