Documentation ¶
Index ¶
- Constants
- type Http
- func (http *Http) GapInStream(tcptuple *common.TcpTuple, dir uint8, private protos.ProtocolData) protos.ProtocolData
- func (http *Http) Init(test_mode bool, results chan common.MapStr) error
- func (http *Http) InitDefaults()
- func (http *Http) Parse(pkt *protos.Packet, tcptuple *common.TcpTuple, dir uint8, ...) protos.ProtocolData
- func (http *Http) PublishTransaction(t *HttpTransaction)
- func (http *Http) ReceivedFin(tcptuple *common.TcpTuple, dir uint8, private protos.ProtocolData) protos.ProtocolData
- func (http *Http) SetFromConfig(config *config.Config, meta *toml.MetaData) (err error)
- type HttpMessage
- type HttpStream
- type HttpTransaction
Constants ¶
View Source
const ( START = iota FLINE HEADERS BODY BODY_CHUNKED_START BODY_CHUNKED BODY_CHUNKED_WAIT_FINAL_CRLF )
View Source
const ( TransactionsHashSize = 2 ^ 16 TransactionTimeout = 10 * 1e9 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Http ¶
type Http struct { // config Send_request bool Send_response bool Send_headers bool Send_all_headers bool Headers_whitelist map[string]bool Real_ip_header string Hide_keywords []string // contains filtered or unexported fields }
func (*Http) GapInStream ¶
func (http *Http) GapInStream(tcptuple *common.TcpTuple, dir uint8, private protos.ProtocolData) protos.ProtocolData
func (*Http) InitDefaults ¶
func (http *Http) InitDefaults()
func (*Http) Parse ¶
func (http *Http) Parse(pkt *protos.Packet, tcptuple *common.TcpTuple, dir uint8, private protos.ProtocolData) protos.ProtocolData
func (*Http) PublishTransaction ¶
func (http *Http) PublishTransaction(t *HttpTransaction)
func (*Http) ReceivedFin ¶
func (http *Http) ReceivedFin(tcptuple *common.TcpTuple, dir uint8, private protos.ProtocolData) protos.ProtocolData
type HttpMessage ¶
type HttpMessage struct { Ts time.Time IsRequest bool TcpTuple common.TcpTuple CmdlineTuple *common.CmdlineTuple Direction uint8 //Request Info FirstLine string RequestUri string Method string StatusCode uint16 StatusPhrase string Real_ip string // Http Headers ContentLength int ContentType string TransferEncoding string Headers map[string]string Body string //Raw Data Raw []byte // contains filtered or unexported fields }
Http Message
type HttpStream ¶
type HttpStream struct {
// contains filtered or unexported fields
}
func (*HttpStream) PrepareForNewMessage ¶
func (stream *HttpStream) PrepareForNewMessage()
type HttpTransaction ¶
Click to show internal directories.
Click to hide internal directories.