(
self,
path: str,
*,
method: str = "GET",
headers: dict | Headers | None = None,
query_string: dict | None = None,
scheme: str = "http",
root_path: str = "",
http_version: str = "1.1",
scope_base: dict | None = None,
auth: Authorization | tuple[str, str] | None = None,
subdomain: str | None = None,
)
| 134 | return response |
| 135 | |
| 136 | def request( |
| 137 | self, |
| 138 | path: str, |
| 139 | *, |
| 140 | method: str = "GET", |
| 141 | headers: dict | Headers | None = None, |
| 142 | query_string: dict | None = None, |
| 143 | scheme: str = "http", |
| 144 | root_path: str = "", |
| 145 | http_version: str = "1.1", |
| 146 | scope_base: dict | None = None, |
| 147 | auth: Authorization | tuple[str, str] | None = None, |
| 148 | subdomain: str | None = None, |
| 149 | ) -> TestHTTPConnectionProtocol: |
| 150 | headers, path, query_string_bytes = make_test_headers_path_and_query_string( |
| 151 | self.app, |
| 152 | path, |
| 153 | headers, |
| 154 | query_string, |
| 155 | auth, |
| 156 | subdomain, |
| 157 | ) |
| 158 | if self.cookie_jar is not None: |
| 159 | for cookie in self.cookie_jar: |
| 160 | headers.add("cookie", f"{cookie.name}={cookie.value}") |
| 161 | scope = make_test_scope( |
| 162 | "http", |
| 163 | path, |
| 164 | method, |
| 165 | headers, |
| 166 | query_string_bytes, |
| 167 | scheme, |
| 168 | root_path, |
| 169 | http_version, |
| 170 | scope_base, |
| 171 | _preserve_context=self.preserve_context, |
| 172 | ) |
| 173 | return self.http_connection_class( |
| 174 | self.app, scope, _preserve_context=self.preserve_context |
| 175 | ) |
| 176 | |
| 177 | def websocket( |
| 178 | self, |
nothing calls this directly
no test coverage detected