code: def urloption(url, headers={}, retries=RETRIES):
      '''发送OPTION 请求'''
      headers_merged = default_headers.copy()
      for key in headers.keys():
          headers_merged[key] = headers[key]
      schema = urllib.parse.urlparse(url)
      for i in range(retries):
          try:
              conn = http.client.HTTPConnection(schema.netloc)
              conn.request('OPTIONS', url, headers=headers_merged)
              resp = conn.getresponse()
              return resp
          except OSError:
              logger.error(traceback.format_exc())
              #return None
          except:
              logger.error(traceback.format_exc())
              #return None
      return Nonf urloption(url, headers={}, retries=RETRIES):
      '''发送OPTION 请求'''
      headers_merged = default_headers.copy()
      for key in headers.keys():
          headers_merged[key] = headers[key]
      schema = urllib.parse.urlparse(url)
      for i in range(retries):
          try:
              conn = http.client.HTTPConnection(schema.netloc)
              conn.request('OPTIONS', url, headers=headers_merged)
              resp = conn.getresponse()
              return resp
          except OSError:
              logger.error(traceback.format_exc())
              #return None
          except:
              logger.error(traceback.format_exc())
              #return None
      return None
docs: 发送OPTION 请求