Class FetchResult

java.lang.Object
org.netpreserve.jwarc.FetchResult

public class FetchResult extends Object
The result of a fetch operation. This contains the request and response as WARC records (without payloads) so that the request and response headers can be inspected.
  • Method Details

    • request

      public WarcRequest request()
      The WARC record containing the request that was sent. The request body will not be readable.
    • response

      public WarcResponse response()
      The WARC record containing the request that was sent. The response body will not be readable.
    • exception

      public Throwable exception()
      If the fetch was interrupted by an exception but truncated records were still written this will return the caught exception. This can occur if the WarcWriter was closed during the fetch.