PcapFileEx.Flows.HTTP2.Adapter (pcap_file_ex v0.5.5)
View SourceAdapter that converts PcapFileEx.HTTP2 analyzer output to Flows API format.
Bridges the existing PcapFileEx.HTTP2.analyze/2 output to the new
PcapFileEx.Flows.HTTP2.Flow structure.
Example
{:ok, complete, incomplete} = PcapFileEx.HTTP2.analyze("capture.pcap")
{:ok, flows} = HTTP2.Adapter.from_exchanges(complete, incomplete, hosts_map: hosts)
Summary
Functions
Converts HTTP2.Exchange list to Flows.HTTP2.Flow list.
Functions
@spec from_exchanges( [PcapFileEx.HTTP2.Exchange.t()], [PcapFileEx.HTTP2.IncompleteExchange.t()], keyword() ) :: {:ok, [PcapFileEx.Flows.HTTP2.Flow.t()]}
Converts HTTP2.Exchange list to Flows.HTTP2.Flow list.
Groups exchanges by client-server pair into flows.
Parameters
complete- List of complete HTTP2.Exchange structsincomplete- List of IncompleteExchange structsopts- Options::hosts_map- Map of IP strings to hostnames
Returns
{:ok, flows} where flows is a list of HTTP2.Flow.t()