本文整理匯總了Python中cpc.network.server_request.ServerRequest.isMultiPart方法的典型用法代碼示例。如果您正苦於以下問題:Python ServerRequest.isMultiPart方法的具體用法?Python ServerRequest.isMultiPart怎麽用?Python ServerRequest.isMultiPart使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cpc.network.server_request.ServerRequest
的用法示例。
在下文中一共展示了ServerRequest.isMultiPart方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: parsePOST
# 需要導入模塊: from cpc.network.server_request import ServerRequest [as 別名]
# 或者: from cpc.network.server_request.ServerRequest import isMultiPart [as 別名]
def parsePOST(headers,message):
if ServerRequest.isMultiPart(headers['content-type']):
request = HttpMethodParser.handleMultipart(headers,message)
else:
request = HttpMethodParser.handleSinglePart(headers, message)
#after this is done the application XML parser should be adapted to handle non xml style commands
#next step is to make the parsing more general to work with browser, NOTE done in web branch
return request