Interface HttpRequestTemplate


  • public interface HttpRequestTemplate
    This interface is used to represent an Intruder request template, which contains the HTTP request and insertion point offsets.
    • Method Detail

      • httpRequestTemplate

        static HttpRequestTemplate httpRequestTemplate​(ByteArray content,
                                                       java.util.List<Range> insertionPointOffsets)
        This method is a helper method used to generate new HttpRequestTemplate instance from an HTTP request in a byte array form and a list of insertion point offsets.
        Parameters:
        content - An HTTP request in a byte array form.
        insertionPointOffsets - List of insertion point offsets.
        Returns:
        A new instance of HttpRequestTemplate.
      • content

        ByteArray content()
        Returns:
        Content of the request template.
      • insertionPointOffsets

        java.util.List<Range> insertionPointOffsets()
        This method is used to obtain insertion point offsets for an Intruder attack.
        Returns:
        A list of Range objects representing insertion point offsets.