def set_http_header(self, coap_response):
        """
        Sets http headers.

        :param coap_response: the coap response
        """
        logger.debug(
                ("Server: %s\n"\
                        "codice risposta: %s\n"\
                        "PROXED: %s\n"\
                        "payload risposta: %s"),
                coap_response.source,
                coap_response.code,
                CoAP_HTTP[Codes.LIST[coap_response.code].name],
                coap_response.payload)
        self.send_response(int(CoAP_HTTP[Codes.LIST[coap_response.code].name]))
        self.send_header('Content-type', 'text/html')
        self.end_headers()
def set_http_header ( self , coap_response ) : logger . debug ( ( "Server: %s\n" "codice risposta: %s\n" "PROXED: %s\n" "payload risposta: %s" ) , coap_response . source , coap_response . code , CoAP_HTTP [ Codes . LIST [ coap_response . code ] . name ] , coap_response . payload ) self . send_response ( int ( CoAP_HTTP [ Codes . LIST [ coap_response . code ] . name ] ) ) self . send_header ( 'Content-type' , 'text/html' ) self . end_headers ( )
Sets http headers.

        :param coap_response: the coap response