http1

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: 8 Imported by: 0

Documentation

Index

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

type HTTP1Request struct {
	Record *http.Request
}

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

type HTTP1Response struct {
	Record *http.Response
}

func (*HTTP1Response) ProtoType

func (*HTTP1Response) ProtoType() types.ProtocolType

ProtoType implements ProtoResponse

func (*HTTP1Response) Protobuf

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

Protobuf implements ProtoResponse

Jump to

Keyboard shortcuts

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