http

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2016 License: Apache-2.0 Imports: 14 Imported by: 202

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	// config
	Ports               []int
	SendRequest         bool
	SendResponse        bool
	SplitCookie         bool
	HideKeywords        []string
	RedactAuthorization bool
	// contains filtered or unexported fields
}

HTTP application level protocol analyser plugin.

func (*HTTP) ConnectionTimeout

func (http *HTTP) ConnectionTimeout() time.Duration

ConnectionTimeout returns the configured HTTP transaction timeout.

func (*HTTP) GapInStream

func (http *HTTP) GapInStream(tcptuple *common.TcpTuple, dir uint8,
	nbytes int, private protos.ProtocolData) (priv protos.ProtocolData, drop bool)

GapInStream is called when a gap of nbytes bytes is found in the stream (due to packet loss).

func (*HTTP) GetPorts

func (http *HTTP) GetPorts() []int

GetPorts lists the port numbers the HTTP protocol analyser will handle.

func (*HTTP) Init

func (http *HTTP) Init(testMode bool, results publish.Transactions) error

Init initializes the HTTP protocol analyser.

func (*HTTP) Parse

func (http *HTTP) Parse(
	pkt *protos.Packet,
	tcptuple *common.TcpTuple,
	dir uint8,
	private protos.ProtocolData,
) protos.ProtocolData

Parse function is used to process TCP payloads.

func (*HTTP) ReceivedFin

func (http *HTTP) ReceivedFin(tcptuple *common.TcpTuple, dir uint8,
	private protos.ProtocolData) protos.ProtocolData

ReceivedFin will be called when TCP transaction is terminating.

Jump to

Keyboard shortcuts

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