(&self)
| 144 | /// Returns whether the response is successful. |
| 145 | #[getter] |
| 146 | pub fn ok(&self) -> bool { |
| 147 | self.status_code.as_int() == wreq::StatusCode::SWITCHING_PROTOCOLS |
| 148 | } |
| 149 | |
| 150 | /// Returns the status code as integer of the response. |
| 151 | #[getter] |