

def set_headers(self, headers):
    h = httputils.Headers()
    if isinstance(headers, list):
        h.extend(map(httputils.get_header, headers))
    elif (type(headers) is str):
        h.add_header(headers)
    self._headers = h

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPRequest.set_headers/original