mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
40 lines
1.8 KiB
Python
40 lines
1.8 KiB
Python
import httpx
|
|
import requests
|
|
|
|
requests.get('https://gmail.com', timeout=30, verify=True)
|
|
requests.get('https://gmail.com', timeout=30, verify=False)
|
|
requests.post('https://gmail.com', timeout=30, verify=True)
|
|
requests.post('https://gmail.com', timeout=30, verify=False)
|
|
requests.put('https://gmail.com', timeout=30, verify=True)
|
|
requests.put('https://gmail.com', timeout=30, verify=False)
|
|
requests.delete('https://gmail.com', timeout=30, verify=True)
|
|
requests.delete('https://gmail.com', timeout=30, verify=False)
|
|
requests.patch('https://gmail.com', timeout=30, verify=True)
|
|
requests.patch('https://gmail.com', timeout=30, verify=False)
|
|
requests.options('https://gmail.com', timeout=30, verify=True)
|
|
requests.options('https://gmail.com', timeout=30, verify=False)
|
|
requests.head('https://gmail.com', timeout=30, verify=True)
|
|
requests.head('https://gmail.com', timeout=30, verify=False)
|
|
|
|
httpx.request('GET', 'https://gmail.com', verify=True)
|
|
httpx.request('GET', 'https://gmail.com', verify=False)
|
|
httpx.get('https://gmail.com', verify=True)
|
|
httpx.get('https://gmail.com', verify=False)
|
|
httpx.options('https://gmail.com', verify=True)
|
|
httpx.options('https://gmail.com', verify=False)
|
|
httpx.head('https://gmail.com', verify=True)
|
|
httpx.head('https://gmail.com', verify=False)
|
|
httpx.post('https://gmail.com', verify=True)
|
|
httpx.post('https://gmail.com', verify=False)
|
|
httpx.put('https://gmail.com', verify=True)
|
|
httpx.put('https://gmail.com', verify=False)
|
|
httpx.patch('https://gmail.com', verify=True)
|
|
httpx.patch('https://gmail.com', verify=False)
|
|
httpx.delete('https://gmail.com', verify=True)
|
|
httpx.delete('https://gmail.com', verify=False)
|
|
httpx.stream('https://gmail.com', verify=True)
|
|
httpx.stream('https://gmail.com', verify=False)
|
|
httpx.Client()
|
|
httpx.Client(verify=False)
|
|
httpx.AsyncClient()
|
|
httpx.AsyncClient(verify=False)
|