MCPcopy Create free account
hub / github.com/bajrangCoder/setu / default

Method default

src/entities/response.rs:122–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121/// HTTP Response data
122#[derive(Debug, Clone, Serialize, Deserialize)]
123pub struct ResponseData {
124 pub status_code: u16,
125 pub status_text: String,
126 /// Response headers received from the server
127 pub headers: HashMap<String, String>,
128 /// Headers that were actually sent with the request (incl. defaults like User-Agent)
129 #[serde(default)]
130 pub request_headers: HashMap<String, String>,
131 /// Final request URL after scheme normalization
132 #[serde(default)]
133 pub request_url: String,
134 #[serde(flatten)]
135 pub payload: ResponsePayload,
136 pub body_size_bytes: usize,
137 pub duration_ms: u64,
138 pub content_type: Option<String>,
139}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected