Conversation
✅ Deploy Preview for esphome-dev-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Adds a documentation blog post describing the breaking C++ http_request API changes in ESPHome 2026.3.0+, focusing on the migration of header container types to std::vector and the replacement of get_response_headers() with get_response_header(name).
Changes:
- New blog post documenting the request/response header API modernization and deprecation timeline.
- Adds a migration guide with code examples and version-guard patterns for external components.
- Provides “finding code that needs updates” grep commands and links to the underlying PRs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| grep -rn 'get_response_headers' your_component/ | ||
|
|
||
| # Find std::set for collect_headers | ||
| grep -rn 'std::set.*collect\|collect_headers' your_component/ |
There was a problem hiding this comment.
The grep pattern uses \| alternation, which is a non-POSIX BRE extension and may not work consistently across environments. To keep these commands broadly copy/pasteable, consider either running two separate grep commands or switching to grep -E and using | alternation.
| grep -rn 'std::set.*collect\|collect_headers' your_component/ | |
| grep -rnE 'std::set.*collect|collect_headers' your_component/ |
Summary
std::map/std::list/std::settostd::vectorfor http_request headersget_response_headers()removed, useget_response_header(name)instead