Clears an outgoing header, undoing a previous `set_header` call.

        Note that this method does not apply to multi-valued headers
        set by `add_header`.
320676
def clear_header(self, name: str) -> None:
        
        if name in self._headers:
            del self._headers[name]
837604
def _clean_header(self, header):
        
        if header.find("[") >= 0:
            header = header.replace("]", "").split("[")[-1]
        # ISATab can start with numbers but this is not supported in
        # the python datastructure, so prefix with isa_ to make legal
        try:
            int(header[0])
            header = "isa_" + header
        except ValueError:
            pass
        return header
647421
def remove_header(self, name):
        
        name_lower = name.lower()
        for index in range(len(self.headers) - 1, -1, -1):
            if self.headers[index][0].lower() == name_lower:
                del self.headers[index]
                return True

        return False
1075211
public function resetHeaders() {
        $headers = $this->getSDK()->getOption('headers');
        $this->headers = array(
            'Accept' => $headers['accept'],
            'Content-Type' => $headers['content_type'],
            'User-Agent' => $headers['user_agent'],
        );
    }
500464
def header(self, name, value):
        
        self.message += "{}: {}\r\n".format(name, value)
        logger.debug('<{}> Received {} header'.format(self.id, name))
        if name.lower().startswith(self.header_prefix.lower()):
            self.remove_headers.append(name)
            logger.debug('<{}> Going to remove {} header'.format(
                self.id, name))
        return Milter.CONTINUE
152731
public function clear() {
        $this->header = array();
        $this->cookies = array();
        $this->files = array();
        $this->statusCode = null;
        $this->statusDescription = null;
        $this->output = '';

        if (ob_get_length() > 0) { 
            ob_clean(); 
        }
    }
96517
def remove(self, recv):
        
        try:
            if recv.notify != self._put:
                raise ValueError
            self._receivers.remove(recv)
            recv.notify = None
        except (IndexError, ValueError):
            raise Error(self.not_present_msg)
959929
public function reset()
    {
        $headers = array_keys(get_object_vars($this));
        foreach ($headers as $key) {
            $this->offsetUnset($key);
        }
    }
765207
public function discardNonPersistentHeaders()
    {
        foreach ($this->headers as $k => $v) {
            if (!in_array($k, self::$HEADERS_TO_PERSIST)) {
                unset($this->headers[$k]);
            }
        }
    }
693612
def clear(self):
        
        with self._hlock:
            self.handlers.clear()
        with self._mlock:
            self.memoize.clear()
849176
def clear_signal_handlers(self):
        '''

        '''
        signal.signal(signal.SIGABRT, self.old_sigabrt)
        signal.signal(signal.SIGINT, self.old_sigint)
        signal.signal(signal.SIGPIPE, self.old_sigpipe)
        signal.signal(signal.SIGTERM, self.old_sigterm)
790106
function cleanSingleHeader(e) {
  for (var headerIndex = 1; headerIndex < 7; headerIndex++) {
    var headers = e.getElementsByTagName('h' + headerIndex);
    for (var i = headers.length - 1; i >= 0; --i) {
      if (headers[i].nextSibling === null) {
        headers[i].parentNode.removeChild(headers[i]);
      }
    }
  }

}
630134
def clear(self):
        
        self.blockSignals(True)
        items = list(self.items())
        for item in items:
            item.close()
        self.blockSignals(False)

        self._currentIndex = -1
        self.currentIndexChanged.emit(self._currentIndex)
1305712
def remove_hop_by_hop_headers(headers):
    
    headers[:] = [
        (key, value) for key, value in headers if not is_hop_by_hop_header(key)
    ]
34754
def remove_headers(headers, name):
    
    i = 0
    name = name.lower()
    for j in range(len(headers)):
        if headers[j][0].lower() != name:
            if i != j:
                headers[i] = headers[j]
            i += 1
    del headers[i:]
    return headers
1075297
def clear_validation(self, cert):
        

        if cert.signature in self._validate_map:
            del self._validate_map[cert.signature]
307142
public void clear() throws IOException {
    if (closed) throw new IllegalStateException("closed");

    // Commit the header.
    writeHeader(INITIAL_LENGTH, 0, 0, 0);

    if (zero) {
      // Zero out data.
      raf.seek(headerLength);
      raf.write(ZEROES, 0, INITIAL_LENGTH - headerLength);
    }

    elementCount = 0;
    first = Element.NULL;
    last = Element.NULL;
    if (fileLength > INITIAL_LENGTH) setLength(INITIAL_LENGTH);
    fileLength = INITIAL_LENGTH;
    modCount++;
  }