Skip to content

Commit

Permalink
pkg : add todo for http2 request/response
Browse files Browse the repository at this point in the history
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Oct 2, 2022
1 parent 7661c94 commit 7da9da8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/event_processor/iparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const (
const (
PARSER_TYPE_NULL PARSER_TYPE = iota
PARSER_TYPE_HTTP_REQUEST
PARSER_TYPE_HTTP2_REQUEST
PARSER_TYPE_HTTP_RESPONSE
PARSER_TYPE_HTTP2_RESPONSE
PARSER_TYPE_WEB_SOCKET
)

Expand Down Expand Up @@ -77,6 +79,12 @@ func NewParser(payload []byte) IParser {
newParser = new(HTTPRequest)
case PARSER_TYPE_HTTP_RESPONSE:
newParser = new(HTTPResponse)
case PARSER_TYPE_HTTP2_REQUEST:
// TODO support HTTP2 request
// via golang.org/x/net/http2
//hpack.NewEncoder(buf)
case PARSER_TYPE_HTTP2_RESPONSE:
// TODO support HTTP2 response
}
break
}
Expand Down

0 comments on commit 7da9da8

Please sign in to comment.