Handle DELETE requests
(self)
| 119 | self.end_headers() |
| 120 | |
| 121 | def do_DELETE(self): |
| 122 | """Handle DELETE requests""" |
| 123 | parsed_path = urlparse(self.path) |
| 124 | |
| 125 | if parsed_path.path.startswith('/sessions/') and parsed_path.path.count('/') == 2: |
| 126 | session_id = parsed_path.path.split('/')[-1] |
| 127 | self.handle_delete_session(session_id) |
| 128 | elif parsed_path.path.startswith('/indexes/') and parsed_path.path.count('/') == 2: |
| 129 | index_id = parsed_path.path.split('/')[-1] |
| 130 | self.handle_delete_index(index_id) |
| 131 | else: |
| 132 | self.send_response(404) |
| 133 | self.end_headers() |
| 134 | |
| 135 | def handle_chat(self): |
| 136 | """Handle legacy chat requests (without sessions)""" |
nothing calls this directly
no test coverage detected