add http middleware template - #3617
Open
michelleN wants to merge 1 commit into
Open
Conversation
michelleN
commented
Jul 14, 2026
michelleN
commented
Jul 14, 2026
| [add_component] | ||
| skip_files = ["spin.toml"] | ||
| [add_component.snippets] | ||
| component = "component.txt" |
Collaborator
Author
There was a problem hiding this comment.
Adding middleware to an existing app would require post add instructions including adding the middleware to dependencies under the correct trigger section.
Collaborator
There was a problem hiding this comment.
This may be unavoidable - presumably the reason you're building your thing as middleware rather than including it in component source code is that you want to apply it to multiple triggers. (Although I guess another case is "my app is an off-the-shelf component like the fileserver but I want to wrap it." So maybe sometimes we do want to be able to auto-add it to triggers. But yeah, we don't have syntax for that yet.)
michelleN
commented
Jul 14, 2026
michelleN
force-pushed
the
middleware-template
branch
from
July 21, 2026 19:23
3f9810d to
d2f4c0e
Compare
michelleN
force-pushed
the
middleware-template
branch
from
July 28, 2026 23:42
d2f4c0e to
f3a7a64
Compare
Signed-off-by: Michelle Dhanani <mdhanani@akamai.com>
michelleN
force-pushed
the
middleware-template
branch
from
July 28, 2026 23:43
f3a7a64 to
1423ddf
Compare
michelleN
marked this pull request as ready for review
July 28, 2026 23:59
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.
Opened up this draft PR as an additional resource to visualize #3618.
This is an attempt to add an http middleware template for both the
spin newandspin addexperience. I ran into a few issues.