http2

package
v0.0.0-...-59efaf5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP2Matcher

type HTTP2Matcher struct {
	// contains filtered or unexported fields
}

func NewHTTP2Matcher

func NewHTTP2Matcher() *HTTP2Matcher

func (*HTTP2Matcher) MatchRequest

func (m *HTTP2Matcher) MatchRequest(req *protocols.Request) *pb.ProtoMessage

MatchRequest implements ProtoMatcher

func (*HTTP2Matcher) MatchResponse

func (m *HTTP2Matcher) MatchResponse(resp *protocols.Response) *pb.ProtoMessage

MatchResponse implements ProtoMatcher

type HTTP2Parser

type HTTP2Parser struct {
	// contains filtered or unexported fields
}

func NewHTTP2Parser

func NewHTTP2Parser() *HTTP2Parser

func (*HTTP2Parser) EnableInferRequest

func (p *HTTP2Parser) EnableInferRequest() bool

func (*HTTP2Parser) EnableInferResponse

func (p *HTTP2Parser) EnableInferResponse() bool

func (*HTTP2Parser) ParseRequest

func (p *HTTP2Parser) ParseRequest(sockKey *types.SockKey, msg []byte) ([]protocols.ProtoRequest, error)

ParseRequest implements ProtoParser

func (*HTTP2Parser) ParseResponse

func (p *HTTP2Parser) ParseResponse(sockKey *types.SockKey, msg []byte) ([]protocols.ProtoResponse, error)

ParseResponse implements ProtoParser

func (*HTTP2Parser) ProtoType

func (p *HTTP2Parser) ProtoType() types.ProtocolType

GetProtoType implements ProtoParser

type HTTP2Request

type HTTP2Request struct {
	Record *http2.MetaHeadersFrame
}

func (*HTTP2Request) ProtoType

func (*HTTP2Request) ProtoType() types.ProtocolType

ProtoType implements ProtoRequest

func (*HTTP2Request) Protobuf

func (r *HTTP2Request) Protobuf() *pb.Request

Protobuf implements ProtoRequest

func (*HTTP2Request) String

func (rr *HTTP2Request) String() string

String implements ProtoRequest

type HTTP2Response

type HTTP2Response struct {
	Record *http2.MetaHeadersFrame
}

func (*HTTP2Response) ProtoType

func (*HTTP2Response) ProtoType() types.ProtocolType

ProtoType implements ProtoResponse

func (*HTTP2Response) Protobuf

func (r *HTTP2Response) Protobuf() *pb.Response

Protobuf implements ProtoResponse

func (*HTTP2Response) String

func (rr *HTTP2Response) String() string

String implements ProtoResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL