MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus / ok

Method ok

packages/fullstack-core/src/httperror.rs:101–103  ·  view source on GitHub ↗

--- 2xx/3xx (rare, but for completeness) ---

(message: impl Into<String>)

Source from the content-addressed store, hash-verified

99
100 // --- 2xx/3xx (rare, but for completeness) ---
101 pub fn ok<T>(message: impl Into<String>) -> Result<T, Self> {
102 Self::err(StatusCode::OK, message)
103 }
104 pub fn created<T>(message: impl Into<String>) -> Result<T, Self> {
105 Self::err(StatusCode::CREATED, message)
106 }

Callers 15

parseMethod · 0.45
from_axum_responseMethod · 0.45
statusMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45
send_js_valueMethod · 0.45
from_requestMethod · 0.45
from_responseMethod · 0.45
from_requestMethod · 0.45
decode_stream_frameFunction · 0.45
get_form_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected