def do_POST(self, request, response):
        # pylint: disable=C0103
        """
        Handles a HTTP POST request

        :param request: The HTTP request bean
        :param response: The HTTP response handler
        """
        try:
            # Get the request content
            data = to_str(request.read_data())

            # Dispatch
            result = self._marshaled_dispatch(data, self._simple_dispatch)

            # Send the result
            response.send_content(200, result, "application/json-rpc")
        except Exception as ex:
            response.send_content(
                500, "Internal error:\n{0}\n".format(ex), "text/plain"
            )
def do_POST ( self , request , response ) : try : data = to_str ( request . read_data ( ) ) result = self . _marshaled_dispatch ( data , self . _simple_dispatch ) response . send_content ( 200 , result , "application/json-rpc" ) except Exception as ex : response . send_content ( 500 , "Internal error:\n{0}\n" . format ( ex ) , "text/plain" )
Handles a HTTP POST request

        :param request: The HTTP request bean
        :param response: The HTTP response handler