Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify adding headers and improve consistency for RemoteHttpPlugin (#…
…15680) # Objective - a follow up pr for #15651 ## Solution - rename add to insert cuz insert make more sense when using a HashMap and new value overrides previous value based on key (quote: #15651 (comment)) - use `TryInto<>` for add(insert) as well when constructing `Headers`. Doing so user won't need to interact with hyper APIs, and `with_headers` will align better with `with_header` (quote: #15651 (comment)) - move example usage of Headers to `with_headers` method (quote: #15651 (comment)) ## Testing - the same as I tested my previous pr
- Loading branch information