MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / ok

Method ok

src/client/async_impl/response/ws/mod.rs:146–148  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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]

Callers 5

protocolMethod · 0.45
dataMethod · 0.45
binaryMethod · 0.45
pingMethod · 0.45
pongMethod · 0.45

Calls 1

as_intMethod · 0.80

Tested by

no test coverage detected