Class HeaderDependency

java.lang.Object
Services.Dependencies.HeaderDependency

public class HeaderDependency extends Object
Handles analysis of HTTP headers to detect dependencies between requests.

This class iterates over headers of a request and compares them with previous responses to identify dependencies. Certain headers that are commonly dynamic or irrelevant (like User-Agent or Accept-Language) are ignored via a blacklist.

Detected dependencies are stored as EdgeHeader objects in the DependencyGraph.

  • Constructor Details

    • HeaderDependency

      public HeaderDependency()
  • Method Details

    • check_header_dependency

      public static void check_header_dependency(List<ResponseUnstructured> responseUnstructuredList, int req_index, DependencyGraph dependencyGraph, MyNode to, int first_index_response)
      Checks for header-based dependencies for a given request.

      For each non-blacklisted header in the target request, this method examines all previous responses (from first_index_response to req_index - 1) to detect dependencies, updating the DependencyGraph if a dependency is found.

      Parameters:
      responseUnstructuredList - list of previously analyzed unstructured responses
      req_index - index of the current request in the HAR sequence
      dependencyGraph - the graph to update with detected dependencies
      to - the target node representing the current request
      first_index_response - index of the first response to consider for dependency checks