| 135 | |
| 136 | @dataclass |
| 137 | class Request: |
| 138 | protocol: str |
| 139 | verb: str |
| 140 | host: str |
| 141 | port: int | None |
| 142 | url: str |
| 143 | request_headers: dict[str, Any] |
| 144 | input: Any |
| 145 | |
| 146 | def with_response(self, status: int, response_headers: dict[str, Any], output: bytes) -> RequestResponse: |
| 147 | return RequestResponse( |
| 148 | self.protocol, |
| 149 | self.verb, |
| 150 | self.host, |
| 151 | self.port, |
| 152 | self.url, |
| 153 | self.request_headers, |
| 154 | self.input, |
| 155 | status, |
| 156 | response_headers, |
| 157 | output, |
| 158 | ) |
| 159 | |
| 160 | |
| 161 | @dataclass |
no outgoing calls
no test coverage detected
searching dependent graphs…