(self, header, value)
Send a request header line to the server.

        For example: h.putheader('Accept', 'text/html')
Send a request header line to the server.
Send a request header line to the server .
def putheader(self, header, value):
        """Send a request header line to the server.

        For example: h.putheader('Accept', 'text/html')
        """
        if self.__state != _CS_REQ_STARTED:
            raise CannotSendHeader()

        self._headers[header] = value
def putheader ( self , header , value ) : if self . __state != _CS_REQ_STARTED : raise CannotSendHeader ( ) self . _headers [ header ] = value