feat(import): preserve supported HTTP contracts
This commit is contained in:
1 parent
083974c27f
commit
f8ee7c9bfe
87 files changed
+7496
-534
No files matched your search
@@ -150,6 +150,7 @@ pub struct PreparedRequest {
|
||||
pub headers: BTreeMap<String, String>,
|
||||
pub trusted_header_names: BTreeSet<String>,
|
||||
pub body: Option<Value>,
|
||||
pub body_content_type: Option<String>,
|
||||
pub timeout_ms: u64,
|
||||
}
|
||||
|
||||
@@ -162,6 +163,10 @@ impl std::fmt::Debug for PreparedRequest {
|
||||
.field("header_count", &self.headers.len())
|
||||
.field("trusted_header_count", &self.trusted_header_names.len())
|
||||
.field("body_configured", &self.body.is_some())
|
||||
.field(
|
||||
"body_content_type_configured",
|
||||
&self.body_content_type.is_some(),
|
||||
)
|
||||
.field("timeout_ms", &self.timeout_ms)
|
||||
.finish()
|
||||
}
|
||||
@@ -333,6 +338,9 @@ mod tests {
|
||||
method: crate::HttpMethod::Get,
|
||||
path_template: "/health".to_owned(),
|
||||
static_headers: Default::default(),
|
||||
request_contract: None,
|
||||
response_contract: Vec::new(),
|
||||
multipart_field_mime_types: Default::default(),
|
||||
});
|
||||
|
||||
let response = adapter
|
||||
|
||||
Reference in new issue
Block a user