Skip to content

Commit

Permalink
Add protocol to web renderer
Browse files Browse the repository at this point in the history
We use this in the web UI to help us render protocol specific requests.
  • Loading branch information
aaronvb committed Nov 5, 2021
1 parent 1c92b98 commit af37ed5
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 30 deletions.
2 changes: 2 additions & 0 deletions cmd/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func httpCommand(cmd *cobra.Command, args []string) {
RequestPort: Port,
ResponseCode: ResponseCode,
BuildInfo: BuildInfo,
Protocol: "http",
}
renderers = append(renderers, web)
} else {
Expand Down Expand Up @@ -109,6 +110,7 @@ func wsCommand(cmd *cobra.Command, args []string) {
RequestPort: Port,
ResponseCode: ResponseCode,
BuildInfo: BuildInfo,
Protocol: "ws",
}
renderers = append(renderers, web)
} else {
Expand Down
Loading

0 comments on commit af37ed5

Please sign in to comment.