feat: add step.raw_response pipeline step for non-JSON HTTP responses#191
Merged
feat: add step.raw_response pipeline step for non-JSON HTTP responses#191
Conversation
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add step.raw_response for non-JSON HTTP responses
feat: add step.raw_response pipeline step for non-JSON HTTP responses
Feb 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new pipeline step type (step.raw_response) to allow HTTP-triggered pipelines to return non-JSON responses (e.g., XML/HTML/plain text) while stopping further pipeline execution and marking the response as handled.
Changes:
- Implemented
RawResponseStepwith configurablecontent_type,status,headers, and rawbody/body_from(with template resolution forbody). - Added unit tests covering common response types, headers/status customization, template resolution,
body_from, no-writer fallback, and config validation. - Registered the new step type in the pipeline-steps plugin manifest and factory map.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| plugins/pipelinesteps/plugin.go | Registers step.raw_response in the plugin manifest StepTypes and StepFactories map |
| module/pipeline_step_raw_response.go | Implements the new RawResponseStep for writing non-JSON HTTP responses |
| module/pipeline_step_raw_response_test.go | Adds test coverage for raw response behaviors and validation |
Contributor
|
@copilot apply changes based on the comments in this thread Also fix the failing tests. |
…t counts Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Contributor
Author
Applied all review comments in 92ee45d:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
module/pipeline_step_raw_response.go— RawResponseStep implementationmodule/pipeline_step_raw_response_test.go— 9 test casesstep.raw_responseinplugins/pipelinesteps/plugin.gostep.raw_responsein manifest StepTypes sliceraw_responseplugin_test.goexpectedSteps list and hardcoded counts from 28→29💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.