Skip to content

Commit

Permalink
feat: add ttheader streaming protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Nov 18, 2024
1 parent e9058c2 commit 5d1ed65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions transport/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ const (
HTTP
GRPC
HESSIAN2
JSONRPC
STREAMING

TTHeaderFramed = TTHeader | Framed
TTHeaderFramed = TTHeader | Framed
TTHeaderStreaming = TTHeader | STREAMING
)

// Unknown indicates the protocol is unknown.
Expand All @@ -54,6 +55,8 @@ func (tp Protocol) String() string {
return "GRPC"
case HESSIAN2:
return "Hessian2"
case TTHeaderStreaming:
return "TTHeaderStreaming"
}
return Unknown
}

0 comments on commit 5d1ed65

Please sign in to comment.