(self)
| 174 | |
| 175 | |
| 176 | def do_POST(self): |
| 177 | self.init_vars() |
| 178 | self.server.reset_selfdestruct_timer() |
| 179 | headers = self.prepare_headers() |
| 180 | payload = self.response_provider.response_for_url_and_headers(self.path, headers) |
| 181 | if payload.response_code() >= 300: |
| 182 | length = int(self.headers.get('content-length')) |
| 183 | self.dispatch_response(Payload(self.rfile.read(length))) |
| 184 | else: |
| 185 | self.dispatch_response(payload) |
| 186 | |
| 187 | |
| 188 | def do_GET(self): |
nothing calls this directly
no test coverage detected