Python: HTTP ãµã¼ãã¼ãã¤ããPython: JSON ãè¿ã HTTP ãµã¼ãã¼ãã¤ããPython: socket ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ JSON ãè¿ã HTTPS ãµã¼ãã¼ãã¤ãã ã½ã±ããã®å¦ç¿ã®ããã«æ¸ãããSSL ã¸ã®å¯¾å¿ã¯ ssl ã¢ã¸ã¥ã¼ã«ã®ãwrap_socket ã§ã½ã±ãããªãã¸ã§ã¯ããã¤ã¤ãã°ããã import socket import ssl import json address = '127.0.0.1' port = 8000 socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) socket = ssl.wrap_socket(socket, certfile='cert.pem', server_side=True) socket.bind((address, port)) s
{{#tags}}- {{label}}
{{/tags}}