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

Method ok

src/client/async_impl/response/http.rs:63–65  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

61 /// Returns whether the response is successful.
62 #[getter]
63 pub fn ok(&self) -> bool {
64 self.status_code.is_success()
65 }
66
67 /// Returns the status code as integer of the response.
68 #[getter]

Callers 2

user_agentMethod · 0.45
encodingMethod · 0.45

Calls 1

is_successMethod · 0.80

Tested by

no test coverage detected