• Home
  • Raw
  • Download

Lines Matching refs:server

39 from http.server import HTTPServer, BaseHTTPRequestHandler
344 def add_standard_headers(server): argument
345 server.send_header('Cache-Control', 'no-cache, no-store, must-revalidate')
346 server.send_header('Access-Control-Allow-Origin', '*')
347 server.send_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
348 server.send_header('Access-Control-Allow-Headers',
350 server.send_header('Access-Control-Expose-Headers',
352 server.send_header(WINSCOPE_VERSION_HEADER, VERSION)
353 server.end_headers()
360 def process(self, server, path): argument
460 def process(self, server, path): argument
461 self._listDevicesEndpoint.process(server, path)
469 server.respond(HTTPStatus.OK, res.encode("utf-8"), "text/json")
476 def process(self, server, path): argument
485 server.respond(HTTPStatus.OK, j.encode("utf-8"), "text/json")
489 def process(self, server, path): argument
491 self.process_with_device(server, path[1:], path[0])
496 def process_with_device(self, server, path, device_id): argument
499 def get_request(self, server) -> str: argument
501 length = int(server.headers["Content-Length"])
506 return json.loads(server.rfile.read(length).decode("utf-8"))
510 def process_with_device(self, server, path, device_id): argument
546 server.respond(HTTPStatus.OK, j.encode("utf-8"), "text/json")
656 def process_with_device(self, server, path, device_id): argument
658 requested_types = self.get_request(server)
664 server.respond(HTTPStatus.OK, b'', "text/plain")
677 server.respond(HTTPStatus.OK, b'', "text/plain")
681 def process_with_device(self, server, path, device_id): argument
693 server.respond(HTTPStatus.OK, out, "text/plain")
701 def execute_command(server, device_id, shell, configType, configValue): argument
710 server.respond(HTTPStatus.OK, b'', "text/plain")
714 def process_with_device(self, server, path, device_id): argument
716 requested_configs = self.get_request(server)
733 execute_command(server, device_id, shell, "sf buffer size", command)
736 def add_selected_request_to_config(self, server, device_id, config): argument
738 requested_configs = self.get_request(server)
756 def process_with_device(self, server, path, device_id): argument
758 config = add_selected_request_to_config(self, server, device_id, config)
762 execute_command(server, device_id, shell, "sf buffer size", setBufferSize)
766 def process_with_device(self, server, path, device_id): argument
768 config = add_selected_request_to_config(self, server, device_id, config)
774 execute_command(server, device_id, shell, "wm buffer size", setBufferSize)
775 execute_command(server, device_id, shell, "tracing type", setTracingType)
776 execute_command(server, device_id, shell, "tracing level", setTracingLevel)
780 def process_with_device(self, server, path, device_id): argument
784 server.respond(HTTPStatus.OK, str(
789 def process_with_device(self, server, path, device_id): argument
791 requested_types = self.get_request(server)
812 server.respond(HTTPStatus.OK, b'', "text/plain")
816 def __init__(self, request, client_address, server): argument
836 super().__init__(request, client_address, server)