PcapFileEx.Flows.HTTP2.Adapter (pcap_file_ex v0.5.5)

View Source

Adapter 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

from_exchanges(complete, incomplete, opts \\ [])

Converts HTTP2.Exchange list to Flows.HTTP2.Flow list.

Groups exchanges by client-server pair into flows.

Parameters

  • complete - List of complete HTTP2.Exchange structs
  • incomplete - List of IncompleteExchange structs
  • opts - Options:
    • :hosts_map - Map of IP strings to hostnames

Returns

{:ok, flows} where flows is a list of HTTP2.Flow.t()