MCPcopy Create free account
hub / github.com/actix/examples / default

Method default

middleware/http-response/src/simple.rs:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20// this implementation is optional
21impl Default for HttpData {
22 fn default() -> Self {
23 Self {
24 data: "Hello this is default error message! you need to set Authorization header to get thru this.".to_string(),
25 }
26 }
27}
28
29pub struct ReturnHttpResponse;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected