本文整理汇总了Python中SimpleXMLRPCServer.SimpleXMLRPCRequestHandler.setup方法的典型用法代码示例。如果您正苦于以下问题:Python SimpleXMLRPCRequestHandler.setup方法的具体用法?Python SimpleXMLRPCRequestHandler.setup怎么用?Python SimpleXMLRPCRequestHandler.setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleXMLRPCServer.SimpleXMLRPCRequestHandler
的用法示例。
在下文中一共展示了SimpleXMLRPCRequestHandler.setup方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup
# 需要导入模块: from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler [as 别名]
# 或者: from SimpleXMLRPCServer.SimpleXMLRPCRequestHandler import setup [as 别名]
def setup(self):
SimpleXMLRPCRequestHandler.setup(self)
# This first is humanreadable subjectAltName URI, etc
self.server.peercert = self.request.getpeercert()
self.server.der_cert = self.request.getpeercert(binary_form=True)
# This last is what a GID is created from
self.server.pem_cert = self.der_to_pem(self.server.der_cert)
示例2: setup
# 需要导入模块: from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler [as 别名]
# 或者: from SimpleXMLRPCServer.SimpleXMLRPCRequestHandler import setup [as 别名]
def setup(self):
self.suppress_body = False
if self.server.enable_ssl:
self.connection = self.request
self.rfile = socket._fileobject(self.request, "rb", self.rbufsize)
self.wfile = socket._fileobject(self.request, "wb", self.wbufsize)
else:
SimpleXMLRPCRequestHandler.setup(self)
示例3: setup
# 需要导入模块: from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler [as 别名]
# 或者: from SimpleXMLRPCServer.SimpleXMLRPCRequestHandler import setup [as 别名]
def setup(self):
SimpleXMLRPCRequestHandler.setup(self)
# This first is humanreadable subjectAltName URI, etc
self.server.peercert = self.request.getpeercert()
self.server.der_cert = self.request.getpeercert(binary_form=True)
# This last is what a GID is created from
self.server.pem_cert = self.der_to_pem(self.server.der_cert)
if self.server.logRequests:
self.log_message("Got call from client cert: %s", self.server.peercert)
示例4: setup
# 需要导入模块: from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler [as 别名]
# 或者: from SimpleXMLRPCServer.SimpleXMLRPCRequestHandler import setup [as 别名]
def setup(self):
SimpleXMLRPCRequestHandler.setup(self)
# Only set rlimits on non-debug
if not __debug__:
self.setrlimits()