Skip to content

Conversation

@jon-mcmillan
Copy link
Contributor

@jon-mcmillan jon-mcmillan commented Jul 25, 2025

Summary

Adds new ROS message types to capture HTTP request and response data for logging and diagnostics of REST API bridge comms.

Changes

  • Added HttpRequest.msg for incoming HTTP request details including method, path, headers, and body
  • Added HttpResponse.msg for HTTP response data including status code, headers, body, and response duration
  • Updated CMakeLists.txt to include the new message definitions

- Rename HttpRawRequest/HttpRawResponse to HttpRequest/HttpResponse
- Add detailed field documentation following polymath_msgs conventions
- Remove misleading "logging" designation
@jon-mcmillan jon-mcmillan changed the title Add HttpRawRequest and HttpRawResponse msg types Add HttpRequest and HttpResponse msg types Jul 28, 2025
@jon-mcmillan
Copy link
Contributor Author

Dropped the Raw modifier and added comments to the fields.

Copy link
Contributor

@troygibb troygibb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

# HTTP request message

# Standard ROS header
std_msgs/Header header
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing internally we need to follow up on is whether we want to align on using headers in our message definitions or just a timestamp. I'm starting to lean towards the latter, but this is fine for now

@troygibb troygibb merged commit 5a40343 into polymathrobotics:main Jul 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants