本文整理匯總了Python中http.HTTPStatus.NOT_IMPLEMENTED屬性的典型用法代碼示例。如果您正苦於以下問題:Python HTTPStatus.NOT_IMPLEMENTED屬性的具體用法?Python HTTPStatus.NOT_IMPLEMENTED怎麽用?Python HTTPStatus.NOT_IMPLEMENTED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類http.HTTPStatus
的用法示例。
在下文中一共展示了HTTPStatus.NOT_IMPLEMENTED屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: do_GET
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def do_GET(self):
split_url = urlsplit(self.path)
if split_url.path == "/callback":
parsed_url = parse_qs(split_url.query)
self.server.callback_code = parsed_url.get("code", [None])[0]
self.server.callback_state = parsed_url.get("state", [None])[0]
self.send_response(HTTPStatus.OK)
body_text = b"<p>You can close me now.</p>"
else:
self.send_response(HTTPStatus.NOT_IMPLEMENTED)
body_text = b"<p>Something went wrong.</p>"
self.end_headers()
self.wfile.write(b"<html><head><title>EDAPI Frontier Login</title></head>")
self.wfile.write(b"<body><h1>AUTHENTICATION</h1>")
self.wfile.write(body_text)
self.wfile.write(b"</body></html>")
示例2: service_files
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def service_files(self, request):
if self.upload_dir is None:
return web.json_response(
{"error": "File listing not allowed"},
status=HTTPStatus.NOT_IMPLEMENTED,
headers={"Cache-Control": "no-cache"},
)
files: List[Dict[str, Any]] = []
for filepath in pathlib.Path(self.upload_dir).rglob("**/*.*"):
filename = str(filepath).replace(self.upload_dir + "/", "")
files.append(
{"filename": filename, "size": filepath.stat().st_size}
)
return web.json_response(files)
示例3: on_teams_card_action_invoke
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_card_action_invoke(
self, turn_context: TurnContext
) -> InvokeResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例4: on_teams_signin_verify_state
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_signin_verify_state(self, turn_context: TurnContext):
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例5: on_teams_signin_token_exchange
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_signin_token_exchange(self, turn_context: TurnContext):
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例6: on_teams_file_consent_accept
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_file_consent_accept( # pylint: disable=unused-argument
self,
turn_context: TurnContext,
file_consent_card_response: FileConsentCardResponse,
):
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例7: on_teams_file_consent_decline
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_file_consent_decline( # pylint: disable=unused-argument
self,
turn_context: TurnContext,
file_consent_card_response: FileConsentCardResponse,
):
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例8: on_teams_app_based_link_query
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_app_based_link_query( # pylint: disable=unused-argument
self, turn_context: TurnContext, query: AppBasedLinkQuery
) -> MessagingExtensionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例9: on_teams_messaging_extension_query
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_query( # pylint: disable=unused-argument
self, turn_context: TurnContext, query: MessagingExtensionQuery
) -> MessagingExtensionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例10: on_teams_messaging_extension_select_item
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_select_item( # pylint: disable=unused-argument
self, turn_context: TurnContext, query
) -> MessagingExtensionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例11: on_teams_messaging_extension_bot_message_preview_edit
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_bot_message_preview_edit( # pylint: disable=unused-argument
self, turn_context: TurnContext, action: MessagingExtensionAction
) -> MessagingExtensionActionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例12: on_teams_messaging_extension_bot_message_preview_send
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_bot_message_preview_send( # pylint: disable=unused-argument
self, turn_context: TurnContext, action: MessagingExtensionAction
) -> MessagingExtensionActionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例13: on_teams_messaging_extension_fetch_task
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_fetch_task( # pylint: disable=unused-argument
self, turn_context: TurnContext, action: MessagingExtensionAction
) -> MessagingExtensionActionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例14: on_teams_messaging_extension_configuration_query_settings_url
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_configuration_query_settings_url( # pylint: disable=unused-argument
self, turn_context: TurnContext, query: MessagingExtensionQuery
) -> MessagingExtensionResponse:
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)
示例15: on_teams_messaging_extension_configuration_setting
# 需要導入模塊: from http import HTTPStatus [as 別名]
# 或者: from http.HTTPStatus import NOT_IMPLEMENTED [as 別名]
def on_teams_messaging_extension_configuration_setting( # pylint: disable=unused-argument
self, turn_context: TurnContext, settings
):
raise _InvokeResponseException(status_code=HTTPStatus.NOT_IMPLEMENTED)