Lines Matching refs:server

39 from http.server import HTTPServer, BaseHTTPRequestHandler
333 def add_standard_headers(server): argument
334 server.send_header('Cache-Control', 'no-cache, no-store, must-revalidate')
335 server.send_header('Access-Control-Allow-Origin', '*')
336 server.send_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
337 server.send_header('Access-Control-Allow-Headers',
339 server.send_header('Access-Control-Expose-Headers',
341 server.send_header(WINSCOPE_VERSION_HEADER, VERSION)
342 server.end_headers()
349 def process(self, server, path): argument
446 def process(self, server, path): argument
454 server.respond(HTTPStatus.OK, j.encode("utf-8"), "text/json")
458 def process(self, server, path): argument
460 self.process_with_device(server, path[1:], path[0])
465 def process_with_device(self, server, path, device_id): argument
468 def get_request(self, server) -> str: argument
470 length = int(server.headers["Content-Length"])
475 return json.loads(server.rfile.read(length).decode("utf-8"))
479 def process_with_device(self, server, path, device_id): argument
515 server.respond(HTTPStatus.OK, j.encode("utf-8"), "text/json")
625 def process_with_device(self, server, path, device_id): argument
627 requested_types = self.get_request(server)
633 server.respond(HTTPStatus.OK, b'', "text/plain")
646 server.respond(HTTPStatus.OK, b'', "text/plain")
650 def process_with_device(self, server, path, device_id): argument
662 server.respond(HTTPStatus.OK, out, "text/plain")
670 def execute_command(server, device_id, shell, configType, configValue): argument
679 server.respond(HTTPStatus.OK, b'', "text/plain")
683 def process_with_device(self, server, path, device_id): argument
685 requested_configs = self.get_request(server)
702 execute_command(server, device_id, shell, "sf buffer size", command)
705 def add_selected_request_to_config(self, server, device_id, config): argument
707 requested_configs = self.get_request(server)
725 def process_with_device(self, server, path, device_id): argument
727 config = add_selected_request_to_config(self, server, device_id, config)
731 execute_command(server, device_id, shell, "sf buffer size", setBufferSize)
735 def process_with_device(self, server, path, device_id): argument
737 config = add_selected_request_to_config(self, server, device_id, config)
743 execute_command(server, device_id, shell, "wm buffer size", setBufferSize)
744 execute_command(server, device_id, shell, "tracing type", setTracingType)
745 execute_command(server, device_id, shell, "tracing level", setTracingLevel)
749 def process_with_device(self, server, path, device_id): argument
753 server.respond(HTTPStatus.OK, str(
758 def process_with_device(self, server, path, device_id): argument
760 requested_types = self.get_request(server)
781 server.respond(HTTPStatus.OK, b'', "text/plain")
785 def __init__(self, request, client_address, server): argument
802 super().__init__(request, client_address, server)