(self, domain, path, use_https=True, insecure=False)
| 429 | ) |
| 430 | |
| 431 | def get_meta(self, domain, path, use_https=True, insecure=False): |
| 432 | schema = "https" if use_https else "http" |
| 433 | port = self.https_port if use_https else self.http_port |
| 434 | r = self.curl_get(f"{schema}://{domain}:{port}{path}", insecure=insecure) |
| 435 | assert r.exit_code == 0 |
| 436 | assert r.response |
| 437 | assert r.response['header'] |
| 438 | return r |
| 439 | |
| 440 | def get_content(self, domain, path, use_https=True): |
| 441 | schema = "https" if use_https else "http" |