Documentation
¶
Index ¶
- type HTTP1Matcher
- type HTTP1Parser
- func (p *HTTP1Parser) EnableInferRequest() bool
- func (p *HTTP1Parser) EnableInferResponse() bool
- func (p *HTTP1Parser) ParseRequest(_ *types.SockKey, msg []byte) ([]protocols.ProtoRequest, error)
- func (p *HTTP1Parser) ParseResponse(_ *types.SockKey, msg []byte) ([]protocols.ProtoResponse, error)
- func (p *HTTP1Parser) ProtoType() types.ProtocolType
- type HTTP1Request
- type HTTP1Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP1Matcher ¶
type HTTP1Matcher struct {
// contains filtered or unexported fields
}
func NewHTTP1Matcher ¶
func NewHTTP1Matcher() *HTTP1Matcher
func (*HTTP1Matcher) MatchRequest ¶
func (m *HTTP1Matcher) MatchRequest(req *protocols.Request) *pb.ProtoMessage
MatchRequest implements ProtoMatcher
func (*HTTP1Matcher) MatchResponse ¶
func (m *HTTP1Matcher) MatchResponse(resp *protocols.Response) *pb.ProtoMessage
MatchResponse implements ProtoMatcher
type HTTP1Parser ¶
type HTTP1Parser struct {
// contains filtered or unexported fields
}
func NewHTTP1Parser ¶
func NewHTTP1Parser() *HTTP1Parser
func (*HTTP1Parser) EnableInferRequest ¶
func (p *HTTP1Parser) EnableInferRequest() bool
func (*HTTP1Parser) EnableInferResponse ¶
func (p *HTTP1Parser) EnableInferResponse() bool
func (*HTTP1Parser) ParseRequest ¶
func (p *HTTP1Parser) ParseRequest(_ *types.SockKey, msg []byte) ([]protocols.ProtoRequest, error)
ParseRequest implements ProtoParser
func (*HTTP1Parser) ParseResponse ¶
func (p *HTTP1Parser) ParseResponse(_ *types.SockKey, msg []byte) ([]protocols.ProtoResponse, error)
ParseResponse implements ProtoParser
func (*HTTP1Parser) ProtoType ¶
func (p *HTTP1Parser) ProtoType() types.ProtocolType
GetProtoType implements ProtoParser
type HTTP1Request ¶
func (*HTTP1Request) ProtoType ¶
func (*HTTP1Request) ProtoType() types.ProtocolType
ProtoType implements ProtoRequest
func (*HTTP1Request) Protobuf ¶
func (r *HTTP1Request) Protobuf() *pb.Request
Protobuf implements ProtoRequest
type HTTP1Response ¶
func (*HTTP1Response) ProtoType ¶
func (*HTTP1Response) ProtoType() types.ProtocolType
ProtoType implements ProtoResponse
func (*HTTP1Response) Protobuf ¶
func (r *HTTP1Response) Protobuf() *pb.Response
Protobuf implements ProtoResponse
Click to show internal directories.
Click to hide internal directories.