LukeMathWalker / wiremock-rs

HTTP mocking to test Rust applications.
Apache License 2.0
624 stars 72 forks source link

Add `ResponseTemplate::append_headers` method #146

Closed avandesa closed 3 months ago

avandesa commented 3 months ago

ResponseTemplate::append_headers is analagous to append_header, but appends multiple headers from an iterator of key-value pairs. Is uses http::HeaderMap's Extend implementation, which uses HeaderMap::append under the hood, ensuring that header values are not overwritten.

LukeMathWalker commented 3 months ago

Thanks!