'Handle a registration request.
Currently registration is not proxied.'

def handle_REGISTER_request(self, message, host_port):

    (host, port) = host_port
    if (self.portal is None):
        self.register(message, host, port)
    elif ('authorization' not in message.headers):
        return self.unauthorized(message, host, port)
    else:
        return self.login(message, host, port)
